GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||||||||||||
GeezerVison is showing github.com — GitHub - fgliu/learngit: git 的常用命令 Folders and files
Repository files navigationyum install git git config --global user.name 'fgliu' git config --global user.email '[email protected]' git init git add 'filename.txt' git commit -m 'this is remark' git status git diff 'filename.txt' git add 'filename.txt' git log git log --pretty=oneline git reset --hard HEAD^ git reset --hard HEAD~3 git reset --hard 23c1dbf git reflog git checkout -- file git reset HEAD file git checkout -- file git rm file sh-keygen -t rsa -C "[email protected]" git remote add origin https://github.com/fgliu/learngit.git git remote add origin [email protected]:fgliu/learngit.git git push -u origin master git clone [email protected]:fgliu/learngit.git git checkout -b dev = git branch dev & git checkout dev git branch git branch -d <name> git push origin :<branch-name> #delete origin/branchname git merge <name> git log --graph --pretty=oneline --abbrev-commit git merge --no-ff git stash git stash apply & git stash drop git stash pop git stash list git branch -D <name> git pull git fetch origin master git merge git branch --set-upstream branch-name origin/branch-name git checkout -b branch-name origin/branch-name git push origin branch-name git tag v1.0 or git tag commitid git tag -a <tagname> -m "blabla" git tag -s <tagname> -m "blabla" git tag git tag -d <tagname> git push origin <tagname> git push origin --tags git push origin :refs/tags/v1.0 git config --global color.ui true git config --global alias.lg "log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit" git remote add <upstream name > <remote url> git remote update <upstream name> git rebase upstream/{branch name} git pull git push origin master cat id_rsa.pub >> git/.ssh/authorized_keys git init --bare sample.git git .gitignore https://github.com/github/gitignore ###以镜像推送的方式上传代码到 GitCafe 服务器上 git push --mirror [email protected]:fgliu/newproject.git ###想取消已经受控的内容处理方式 git rm --cached <path> ###更新.gitignore文件 git commit -m '不想再对这些文件进行跟踪' ###如果只是临时的不想跟踪指定目录 git update-index --assume-unchanged <PATH> Aboutgit 的常用命令 ResourcesReleasesPackagesContributors | ||||||||||||||||||||||||||||
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. | ||||||||||||||||||||||||||||