美文网首页
git command

git command

作者: marine0131 | 来源:发表于2017-08-03 16:58 被阅读0次

clone

git clone git@github.com:marine0131/reposity_name

push

1.git add -A
2.git commit -m 'something want to say'
3.git push origin master

pull

1.git pull origin master

if local version have changed, commit have be done first
这个操作将抛弃本地版本,需要谨慎

1.git checkout .   //注意checkout 后空格 加 “ . ”
2.git pull origin master

单独撤销一个文件的本地修改

git checkout -- file2
 ```
##check

git status

相关文章

  • git 命令大全

    git help command # 显示command的helpgit show # 显示某次提交的内容 git...

  • Git Basic

    A simple command-line tutorial: Git global settings: git ...

  • 执行git pull时报错command 'git pu

    执行git pull时报错Exit status of command 'git pull && git fetc...

  • 新项目关联远程git仓库

    Command line instructions 1. Git global setup git config ...

  • Git常用命令&git merge心得

    Command line instructions Git global setup git config --g...

  • git command

    clone push pull if local version have changed, commit hav...

  • git command

    git提交和上传步骤 1. 初始化本地git仓库在本地项目根目录下,git init该命令在目录下生成.git文件...

  • git command

    git diff HEAD git status 命令git checkout -- readme.txt意思就是...

  • Git command

    版本切换 切换到某次提交的版本 git reset --hard commit_id 查看日志 查看日志 gi...

  • Git Command

    git init git remote add origin xxxxxxx@xxxx.git git pull ...

网友评论

      本文标题:git command

      本文链接:https://www.haomeiwen.com/subject/pqtyfxtx.html