gitコマンド

1. git init

2 . git add file
git commit -m “message"

3. git log
git log –graph –pretty=oneline –abbrev-commit

4. git reflog

5. git reset –hard HEAD^
git reset –hard ******

6. git checkout — file
git reset HAED file
7. git rm file

8. github
1) ssh-keygen -t rsa -C “your_email@example.com"
2) set github.com ssh-key
3) ssh-agent -s
4) ssh-add key

9. git remote add origin git@server-name:path/repo-name.git

10. git push -u origin master || git push origin master

11. git clone git@github.com:grushy/test.git

12 . ビューブランチ:git branch

13 git merge –no-ff -m “merge with no-ff" dev

14. git stash

15 tag

Windows10

Posted by arkgame