-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcheatsheet.txt
30 lines (29 loc) · 2.77 KB
/
cheatsheet.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
git fetch upstream | Fetch the change from the upstream(Not from origin but from upstream)
What if I am working on some feature.
Another person is also workin on that feature.
I have developed 90%
I then realize, I have to take changes from person2 changes into my code and then continue working
Then I would need to send a PR after my code is complete
---------------------------------------------------------------------------------------------------------------------
git tag | To see a list of all the tags
---------------------------------------------------------------------------------------------------------------------
git tag v1.0.0 | To create a new tag
---------------------------------------------------------------------------------------------------------------------
git lg | Show a list of all the logs
---------------------------------------------------------------------------------------------------------------------
git tag -a v1.0.0 -m "New tag"
---------------------------------------------------------------------------------------------------------------------
git push -v --tags | To push to remote along with the tags
---------------------------------------------------------------------------------------------------------------------
git push -v origin v1.0.1 | To push a specific version of the tag onto remote
---------------------------------------------------------------------------------------------------------------------
git log --oneline | Used to display the log file in 1 line per commit
---------------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------