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

nico.michael at arduino.org.za nico.michael at arduino.org.za
Fri Apr 4 12:44:56 UTC 2014


Thanks Christopher
Do I use the same procedure to create the repository on my laptop
on my server ?

regards
Nico

Quoting Christopher Schoonbee <cmschoonbee at mweb.co.za>:

> 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
>
> -- 
> ubuntu-za mailing list
> ubuntu-za at lists.ubuntu.com
> https://lists.ubuntu.com/mailman/listinfo/ubuntu-za
>





More information about the ubuntu-za mailing list