First time Git Setup – Git

github logo silhouette in a square 318 54633

First-Time Git Setup – Git

Please follow below steps

1.      Download git from https://git-scm.com/downloads
2.      Create n new account on https://github.com
3.      Create new repository on https://github.com
4.      Create a new folder and fire git init on it. This command will create and initialize git repo for us.

1Capture

5.      Go to newly created repository and copy the git repo url as shown below.

2Capture
6.      Fire below command which which store the remote URL of git.
7.      To commit a file we need to follow below steps
a.      git add <file-name> – to add a new file
git add . – to add all files and folders in current directory
b.      git commit -m “your commit message” <file-name> – to commit the file into stash
c.      git push origin master – to push the changes into git repo

4Capture