Skip to content

Latest commit

 

History

History
27 lines (25 loc) · 970 Bytes

git.md

File metadata and controls

27 lines (25 loc) · 970 Bytes
  • 修改git源 git remote set-url origin remote_git_address
  • 新建分支名 git branch --set-upstream ye origin/ye
  • fatal: No such remote 'origin' git remote add origin https://github.com/SbyXlmm/GitImg.git

  • Github官方命令
  • …or create a new repository on the command line
  • echo "# GitImg" >> README.md
  • git init
  • git add README.md
  • git commit -m "first commit"
  • git remote add origin https://github.com/SbyXlmm/GitImg.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.

  • 查看用户名和邮箱地址 git config user.name

  • 修改用户名 git config --global user.name "username"

  • 拉远程代码git pull origin master

  • 查看代码提交情况git log