[ubuntu-za] trying to create a working git repository in my Ubuntu Linux

Christopher Schoonbee cmschoonbee at mweb.co.za
Thu Apr 3 16:40:37 UTC 2014


On 03/04/2014 17:19, nico.michael at arduino.org.za wrote:
> Hi there
>
> I have used the following steps to create a repository
> add a dummy text file so i can send it to my Git server
>
> cd /home/nico/git
> mkdir MY_JAVA_PROJECT
> cd MY_JAVA_PROJECT/
> git init
> touch deleteme.txt
> git add .
> Got error added this to fix it :
> git config --global user.name "nickm"
> git config --global user.email "nico.michael at arduino.org.za"
>
> git commit -m "initial commit"
>
>
> local/path/to/local/project> git checkout mybranch
> got Error : error: pathspec 'mybranch' did not match any file(s) known 
> to git.
>
> Please advise
>
> regards
> Nico
>
I assume `mybranch` has not been created yet.  In that case you need to use:
 > git checkout -b mybranch

Hope that helps,
Chris



More information about the ubuntu-za mailing list