git init ls -Force(ls -a) git status New-item(touch) file.txt -Type file git status git add .(\filename) git status git commit -m '[My name] What I have done' git status git log
vim file.txt git status
git diff
git add . git commit -m ' '
git log
git checkout .(filename,wildcard )##撤销,回到上一次提交
git log# see hash code
git checkout hashcode# jump to certain commit
vim file
git add . git checkout -b another_branch
git commit -m ' ' git log
git checkout branch_name
git merge another_branch# at master branch
git status# find conflict vim file## <<<<HEAD(Change in current branch) #changes #=== #changes #>>>>another_branch(Changes to be merged) # Modify the confilct manually git add . git commit -m ' ' git log
git remote
在
1 2 3 4 5 6 7
git clone git remote -v ## make some change git status git push -u origin master git status
alias showuser='echo $USER' showuser export linuxcourse='for beginners' echo$linuxcourse ls -a vim .bashrc # Then you can set the variable pernamently # This is the way to set environment variables