/Study

study in the net in my life in everywhere

Primary LanguagePython

Study

##study in the net in my life in everywhere

  1. On internet Surf the Internet

  2. On book This's really hypnosis.

  3. Learn from teacher Cramming education

  4. At the end of is the reason why I come here.

The next time I will share some pictures.

登录

登录信息

git config --global user.name "MyName"

git config --global user.email "MyEmail"

初始本地信息

git init

git add .

'''将.文件放入缓存区'''

git remote add origin URL

git pull origin master

git push origin master

分支管理

  1. 新建分支

git branch newbranch

  1. 查看分支

git branch

  1. 切换分支

git checkout newbranch

  1. 可在当前分支上传

git add .

git commit -a

  1. 查看提交状态

git status

  1. 切换回主分支

git checkout master

  1. 将分支合并到主分支上

git merge newbranch

  1. 查看冲突

git diff

git push -u origin master

  1. 删除分支

git branch -D newbranch

git update your repository

  1. git clone your-url
  2. cd 项目
  3. git add .
  4. git commit -m "提交信息"
  5. git push -u origin master(将本地库push到github上)