-
Notifications
You must be signed in to change notification settings - Fork 0
/
opencode.txt
20 lines (16 loc) · 1.06 KB
/
opencode.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
1) Git is a version control system when the record of modifications of the code is maintained whereas Github is helpful in managing
repositories and is totally cloud based. Git is installed locally.
2) git init- to start a new repository
git clone- to make the copy of the repo in the new directory
git branch- to create a new branch
git status- give info about the branch
git commit- to save changes
3) first, the project needs to be forked
then clone it by clicking on the clone button and copy the link, then open the terminal and use the command git clone and copy the link
go to the cloned directory by using the command cd [name of repository]
create a branch by using the command git checkout
make changes to the project and save it using git commit command
now identify the remote's name for the repository using the git remote command
now push changes using git push origin command
now inorder to create pull request, go to the repository in github and click on the button "compare and pull request"
then click on create pull request.