Skip to content
ythy edited this page Apr 28, 2020 · 6 revisions

初次步骤

  • git init 初始化库

  • git add * 添加文件

  • git remote add XXX https://github.com/ythy/XXX Adding Remote Repositories

  • git commit -a -m 'log' 本地提交

  • git push XXX master Pushing to Your Remotes>

  • git pull XXX master 拉取最新文件

资源

删除文件

  • git commit -a -m 'del'

git push XX master 解释

git remote add ...
The command git remote add origin [email protected]:peter/first_app.git creates a new remote called origin located at [email protected]:peter/first_app.git. Once you do this, in your push commands, you can push to origin instead of typing out the whole URL.
git push origin master
This is a command that says "push the commits in the local branch named master to the remote named origin". Once this is executed, all the stuff that you last synchronised with origin will be sent to the remote repository and other people will be able to see them there.

Clone this wiki locally