Git Quick Start – Learn How to Install GIT and More

Git and Github Installation

Github and Git Quick Start
Install Git  and use it with Github

Git is a source version control which can help you to keep history for all your code or files, source version control software helps programmers to have access to code while keep record for all versions and give the ability to them to work in parallel.

Install Git on Windows/Linux and Mac:
Go to this link to download the right version for your operating system, installing Git on Windows is straight forward as it's a simple wizard, on Linux you can use 'yum install git' or 'apt-get install git'  depends on the Linux flavor you are using.

Git With Github Quick start

#1 Create your own Git repository on Github

  1. Create a Github account if you don't have one.
  2. Once you login you can create a new repository by clicking on the '+' sign and choose new repository or click on 'new repository' button.
  3. If you need to create new user or organization name to have different url (Ex.: github.com/name), you can do that by creating new organization from the '+' menu.
  4. From there you can add users that can have access to add and edit files in that folder.

#2 Create your first repository

A) Web part:

  1. Click on create new repository then put name, description and choose if you want your git repository to be public which means will be available online or private to only your group.
  2. You will have now a url to your repo unde the organization name and repository name you just created (Ex.:https://github.com/dotsway/test-gui.git)

B) Bash/Windows part:

  1. On Windows run Git CMD or Git Bash and from Linux just use the command line.
mkdir folder-name
cd folder-name
echo "# test-gui" >> README.md
git init
git add README.md
git commit -m "first commit"
git remote add origin git@github.com:dotsway/test-gui.git
git push -u origin master

Are you getting errors like ?

Permission denied (publickey). fatal: The remote end hung up unexpectedly

Check this tutorial for fixing Permission denied (publickey) error

#3 Update and edit repo and push it back

Edit now README.md on Git bash:

vi README.md
Type anything then hit ':' and 'wq!' to save and exit.

Check with Git if file was modified:

git status

Update the file to your online repository on github

git commit -m "I edited the file" README.md
git push origin master

Commit  command will record all modification you have done to README.md file
push origin master , push will update modified file to the online repository , origin master means that it will be placed in the main master branch

#4 Download existing project

To download https://github.com/dotsway/test-gui.git repository to new-folder use below command and second command can be used in case the repository needs a password:

git clone https://github.com/dotsway/test-gui.git new-folder
git clone https://username@github.com/username/repository.git

We will be adding a video tutorial and a sheet with the most useful git commands, don't forget to like and share to get these updates.


Subscribe to
for video tutorials updates

One thought on “Git Quick Start – Learn How to Install GIT and More

  1. Pingback: Git Bash : Permission denied (publickey) - dotsway

Comments are closed.