Starting with Git in Linux

1. Install Git
sudo apt-get install git

2. Setup your identity
$ git config --global user.name "Sanyam Jain"

$ git config --global user.email xerosanyam@gmail.com

3. Set up Default Editot
$ git config --global core.editor Gedit

4. To see your Git settings.
$ git config --list

5. Getting Help
$ git config --list

--------------------------------------------------------------------

1. Initialize Git Repository in existing directory
$ git init

2. Add Files to git repository
$ git add [File names]

3. Commit to git.
$ git commit -m 'Inital project version'

------------------------------------------------------------------

1. Clone Git online repository
$ git clone [URL]

 

Comments