The post consists of sets of frequently used sets of commands.
How to pull the data?
How to push the data?
To check what files are going to be updated: git status
How to make a tag?
How to remove a tag?
git tag -d pub1
How to undo git add:
git reset file.txt
How to pull the data?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git init | |
git remote add origin https://github.com/... | |
git pull origin master |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git add . | |
git commit -m 'Message' | |
git push origin master |
How to make a tag?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git tag pub1 | |
git push origin pub1 |
git tag -d pub1
How to undo git add:
git reset file.txt
No comments:
Post a Comment