Git - ythy/blog GitHub Wiki
初次步骤
-
git init初始化库 -
git add *添加文件 -
git remote add XXX https://github.com/ythy/XXXAdding Remote Repositories -
git commit -a -m 'log'本地提交 -
git push XXX masterPushing 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.