git一些用法

https://github.com/alada007/alada/commits/master

git init

git add*

git commit -'initial import'

修改之后

git status -s 会得到修改记录

git add stats.rb

git commit -'add word size average'

git branch 可以查看分支

git branch vowels 增加一个分支

git checkout vowels 变换到vowels分支

git merge master 那么将vowels和master

git commit --'add count of vowel-started words' 这是git add git commit的联合体

git remote rm origin  修改你的origin

Create a new repository on the command line

touch README.md
git init
git add README.md
git commit -m "first commit"
git remote add origin https://github.com/alada007/alada.git
git push -u origin master
Push an existing repository from the command line


git remote add origin https://github.com/alada007/alada.git
git push -u origin master

你可能感兴趣的:(git一些用法)