Git/Github 使用实例

cmd
cd project-directory
git init
git config user.name 'yourname'
git config user.email '[email protected]'
git pull https://github.com/yourname/yourrepository //不需要帐号密码
git log
…… //修改某些东西
git status
git diff
git add .
git commit -m 'modify something'
//git push –set-upstream url branchname
git push --set-upstream https://github.com/yourname/yourrepository master
//显然,需要 github 帐号,且事先在 github 建立仓库。

猜你喜欢

转载自www.cnblogs.com/dailycode/p/9440418.html