Install Github
First update the apt-get package lists with this command apt-get update
then install git.
$ sudo apt-get update
$ sudo apt-get install git
Now git has been installed on Ubuntu, lets setup git.
How to set up Git
Now we need to do few things that will commit messages and upload files to git repository. The easiest way to do this is through git config
commands.
$ git config --global user.name "Your Name"
$ git config --global user.email "youremail@domain.com"
Now enter this command to see that username and email is saved or not:
$ git config --list
Following output will be displayed:
user.name=Your Name
user.email=youremail@domain.com
All done! Now you may add repository to git and upload files.
Thanks for reading the blog.
0 Comment(s)