Difference between revisions of "VScaler: Using Bitbucket Repository"

From Define Wiki
Jump to navigation Jump to search
(Created page with "== Cloning main repo == <syntaxhighlight> Jons-MacBook:vScaler-scripts Jon$ pwd /Users/Jon/Work/vScaler-scripts Jons-MacBook:vScaler-scripts Jon$ git clone git@bitbucket.org:bostonhpc/vs...")
 
Line 1: Line 1:
 
== Cloning main repo ==
 
== Cloning main repo ==
 +
* Use the '''<code>git clone</code>''' command
 
<syntaxhighlight>
 
<syntaxhighlight>
 
Jons-MacBook:vScaler-scripts Jon$ pwd
 
Jons-MacBook:vScaler-scripts Jon$ pwd
Line 14: Line 15:
  
 
== Switch to fork ==
 
== Switch to fork ==
 +
* Switch to the top level directory for the local copy of your repo
 +
* Use the following commands:
 +
** '''<code>git fetch</code>''' to download objects and refs from another repository.
 +
** '''<code>git checkout <branch_name></code>''' to switch to another branch (and specify the branch name)
 +
 
<syntaxhighlight>
 
<syntaxhighlight>
 
Jons-MacBook:vScaler-scripts Jon$ cd vscaler-openhpc/
 
Jons-MacBook:vScaler-scripts Jon$ cd vscaler-openhpc/

Revision as of 13:23, 14 October 2016

Cloning main repo

  • Use the git clone command
Jons-MacBook:vScaler-scripts Jon$ pwd
/Users/Jon/Work/vScaler-scripts
Jons-MacBook:vScaler-scripts Jon$ git clone git@bitbucket.org:bostonhpc/vscaler-openhpc.git
Cloning into 'vscaler-openhpc'...
remote: Counting objects: 130, done.
remote: Compressing objects: 100% (100/100), done.
remote: Total 130 (delta 25), reused 0 (delta 0)
Receiving objects: 100% (130/130), 22.87 KiB | 0 bytes/s, done.
Resolving deltas: 100% (25/25), done.
Checking connectivity... done.

Switch to fork

  • Switch to the top level directory for the local copy of your repo
  • Use the following commands:
    • git fetch to download objects and refs from another repository.
    • git checkout <branch_name> to switch to another branch (and specify the branch name)
Jons-MacBook:vScaler-scripts Jon$ cd vscaler-openhpc/
Jons-MacBook:vscaler-openhpc Jon$ git fetch && git checkout jon-test
Branch jon-test set up to track remote branch jon-test from origin.
Switched to a new branch 'jon-test'