From 4535d8a02cd190f30a81e7e064258b339332162d Mon Sep 17 00:00:00 2001 From: F Pucher Date: Tue, 3 Dec 2019 20:21:34 +0000 Subject: [PATCH] Create git-setup.md --- docs/git-setup.md | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 docs/git-setup.md diff --git a/docs/git-setup.md b/docs/git-setup.md new file mode 100644 index 00000000..92b9fc5c --- /dev/null +++ b/docs/git-setup.md @@ -0,0 +1,22 @@ +## git setup + +Install git on Ubuntu via the following command: + +
fjp@ubuntu:~/git/2wd-robot$ sudo apt install git
+ + +Set your username and email address that you use on github (when using github to host your repository): + +
fjp@ubuntu:~$ git config --global user.name "fjp"
+
fjp@ubuntu:~$ git config --global user.email "franz.pucher@gmail.com"
+ + +To store your password credentials when pushing and pulling to the remote repository use the following commands: + +
fjp@ubuntu:~/git/2wd-robot$ git config --global credential.helper store
+fjp@ubuntu:~/git/2wd-robot$ git push
+Username for 'https://github.com': fjp
+Password for 'https://fjp@github.com': 
+Everything up-to-date
+fjp@ubuntu:~/git/2wd-robot$ git push
+Everything up-to-date