2019/2/26
1.取個自己喜歡的名子
2.這個打勾
3.按下去
cd Desktop
git clone https://github.com/SunTalk/UVA.git
cd Desktop
mkdir <FileName>
cd <FileName>
git init
git config --global user.name "<Name>"
git config --global user.email "<Email@gmail.com>"
Untracked files
Changes not staged for commit
Changes to be commited
Commited
git status
git add <FileName>
git commit -m "<Your commit>"
最基本最重要的指令
GitHub同場加映
git pull
git push
git log
git log --oneline
git log --grep="<Want to Find>"
git log --author="<Name>"
git log --oneline --grep="<Want to Find>"
git log --oneline --author="<Name>"
git log --pretty=format:"%h - %an, %ar : %s"
git log
git reset --soft HEAD~
git reset --mixed HEAD~
git reset --hard HEAD~
git reset <SHA1>
git reset 9e5e6a4
git diff <SHA1>
git diff <SHA1> <SHA1>
在目錄底下新增 .gitignore
常用的 gitiginore 大集合
https://github.com/github/gitignore
git branch <YourNewBranch>
git checkout <YourNewBranch>
git checkout -b <YourNewBranch>
git checkout master
git merge hotfix
git branch -d hotfix
git branch -D hotfix
git checkout master
git merge iss53
git clone <SSH/HTTPS>
git fetch <remote>
git pull
git push <remote> <branch>
解決辦法:
flag 形式:
NISRA{XXXX}
在commit中留下的訊息
use reset
只有一個branch嗎?