Visual Arts Press Blog

The all knowing, ever present VAP knowledge base

Archive for the ‘git’ Category

Creating a new git branch locally and remotely

without comments

Locally

> git  checkout -b <new-branch-name>
> git push origin <new-branch-name>

Remotely

> git fetch
> git checkout --track -b <new-branch-name> remotes/origin/<new-branch-name>

 

 

Written by ecorriel

November 4th, 2013 at 9:29 pm

Posted in git,web

Setting up a git repo on svablogserver.sva.edu

without comments

> mkdir blog.sva.edu
> sudo chgrp -R vabriefs blog.sva.edu/
> sudo chmod -R g+swX blog.sva.edu/
> cd blog.sva.edu/
> git init
> git remote add origin https://visualartspress.unfuddle.com/git/XXXXXXXXXXXXXX
> git config remote.unfuddle.push refs/heads/master:refs/heads/master
> ssh-keygen -t rsa
> cat ~/.ssh/id_rsa.pub

Copy results and paste into unfuddle > account > SSH keys

>  sudo vi ~/.netrc

machine visualartspress.unfuddle.com
login username
password password

 

> git fetch

 

 

 

Written by ecorriel

June 28th, 2013 at 8:55 pm

Posted in admin,git,web