Skip to content
vanhoan310 edited this page Apr 19, 2019 · 18 revisions
  1. To list remote branches: git branch -r

  2. You can check them out as local branches with: git checkout -b LocalName origin/remotebranchname

  3. Download a local branch and make a new branch from that
    git checkout -b newlocalbranchname origin/branch-name

  4. Git pull

  • In the simplest terms, git pull does a git fetch followed by a git merge.
  • You can do a git fetch at any time to update your remote-tracking branches under refs/remotes//.
  • This operation never changes any of your own local branches under refs/heads, and is safe to do without changing your working copy. I have even heard of people running git fetch periodically in a cron job in the background (although I wouldn't recommend doing this). A git pull is what you would do to bring a local branch up-to-date with its remote version, while also updating your other remote-tracking branches.
  1. Create and manage branches
    https://github.com/Kunena/Kunena-Forum/wiki/Create-a-new-branch-with-git-and-manage-branches

  2. Install git on local machine http://joemaller.com/908/how-to-install-git-on-a-shared-host/

  3. Git pull/push: git pull https://github.com/vanhoan310/scRNAseq_clustering_benchmark
    git push https://github.com/vanhoan310/scRNAseq_clustering_benchmark.git

  4. Git reset to some commit
    https://stackoverflow.com/questions/4114095/how-to-revert-a-git-repository-to-a-previous-commit

Clone this wiki locally