1,如何使用git忽略不想传的文件
touch .gitignore
2,分支的使用
分支中完全操作好了,再提交到主线程
git branch login
git checkout login
3,主线及分支的合并
git merge login
4,操作远程仓库
git remote
…or create a new repository on the command line
echo "# homework" >> README.md git init git add README.md git commit -m "first commit" git remote add origin https://github.com/2019tiger/homework.git git push -u origin master
…or push an existing repository from the command line
git remote add origin https://github.com/2019tiger/homework.git git push -u origin master
…or import code from another repository
You can initialize this repository with code from a Subversion, Mercurial, or TFS project.
克隆github上的代码
git clone https://github.com/2019tiger/homework.git