Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
22 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
## git setup | ||
|
||
Install git on Ubuntu via the following command: | ||
|
||
<pre><font color="#8AE234"><b>fjp@ubuntu</b></font>:<font color="#729FCF"><b>~/git/2wd-robot</b></font>$ sudo apt install git</pre> | ||
|
||
|
||
Set your username and email address that you use on github (when using github to host your repository): | ||
|
||
<pre><font color="#8AE234"><b>fjp@ubuntu</b></font>:<font color="#729FCF"><b>~</b></font>$ git config --global user.name "fjp"</pre> | ||
<pre><font color="#8AE234"><b>fjp@ubuntu</b></font>:<font color="#729FCF"><b>~</b></font>$ git config --global user.email "franz.pucher@gmail.com"</pre> | ||
|
||
|
||
To store your password credentials when pushing and pulling to the remote repository use the following commands: | ||
|
||
<pre><font color="#8AE234"><b>fjp@ubuntu</b></font>:<font color="#729FCF"><b>~/git/2wd-robot</b></font>$ git config --global credential.helper store | ||
<font color="#8AE234"><b>fjp@ubuntu</b></font>:<font color="#729FCF"><b>~/git/2wd-robot</b></font>$ git push | ||
Username for 'https://github.com': fjp | ||
Password for 'https://fjp@github.com': | ||
Everything up-to-date | ||
<font color="#8AE234"><b>fjp@ubuntu</b></font>:<font color="#729FCF"><b>~/git/2wd-robot</b></font>$ git push | ||
Everything up-to-date</pre> |