Log in
updated 11:29 AM UTC, May 4, 2016

Setup : Git Hub new repo creation and setup to get you started


* have a Git hub account and know how to create a repo.

Step by Step procedure to create a git hub repository and set-up your project.

1) Create a bare repository in your GitHub account (which matches your project name) along with a README.md file (so that its ready to be cloned).


2) Clone the repo in your local workspace:

git clone https://github.com/YourGitHub/YourProject

3) Now its time you configure the git repo. Start with changing the User name and Email:

git config --global user.email "YourEmail" 
git config --global user.name "YourName" 

4) You have an option to set the default editor git uses (by default it uses Vi editor in Linux) you can change it to "gedit" by this commad:

git config --global core.editor gedit

 5) By Default output colors are disabled , you can turn on the automatic terminal coloring :

git config --global color.ui true

There are many more options to set the coloring for specific commands like diff , status etc. 

 6) You can set the Merge tool / Diff tool to program of your choice:

 git config --global diff.tool bcompare
 git config --global merge.tool bcompare

will post complete setup of beyond compare in another post.

7) Your first changes and commit

You can create your own project in the git older and add it to the git using command:

git add *

Once the files are added , commit the changes:

git commit -m "Commit message"

Now push the changes to your git hub account (once you clone the repo from github account , the remote location will be set automatically):

git push origin {BranchToPush}

you can find out about your remote by giving the command:

git remote -v 

8) Thats it , now you can visit your gitHub account to find the new changes in there.


Powered by Bullraider.com
Follow Us on Twitter
Find Us on Facebook
Follow Us on Google
Follow Us on Pinterest