-
Notifications
You must be signed in to change notification settings - Fork 1
/
hello.txt
20 lines (20 loc) · 984 Bytes
/
hello.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
touch to create a file
code to code the particular file
add stagimg area
git commit -m ""
cat filename - content of that file
:wq to exit the wierd screen
if we do two commits and not push it where will we see the commit history and the changes we have made?
git commit -am : together commit and add
git -rm :to remove a file so in next commit this file will be deleted
git reset --hard:for going back to previous commit
git branch
git checkout -b <branchname> // create a new branch
git merge <branchname>
git checkout <branchname> // move head to some other existing branch
git remote add origin master <url>
git push -u origin master : -u signifies that next time if u just write git push it is goin to the origin master specified
git push origin master : then everytime we hv to write everything with git push
git pull origin master: origin signifies the repository and master signifies the curr branch
merge conflict comes when changes made in the same line
//This is a comment