Learning git through git bash

Thanks for your interest but we are no longer taking projects.

Like Us On Facebook:  



Clones a repository into a newly created directory, creates remote-tracking branches for each branch in the cloned repository

in order to clone in git bash navigate to the folder you have set up, and type

git clone(copy the url on the repo)

That will download the files to your computer

========= Switching branches ===============

git checkout -b development

You will see the change on the line above in bash from master to development.

========== Pulling ===============

Before you start working on the project for the day, its good practice to pull the changes that anyone else has made to the repo before you start. You can do this with

git pull


Committing is when you want to push the new build up to the site

Navigate to the file you want to commit and type

git commit -m “type in the change here, this is where we will see your new changes”

git pull

git push

=========git status .================

git status is a very useful command that allows you to see which files have been changed.
When you type git status . and it shows files in the red, that means they are ready to be committed.

If the files are green, they are ready to be pushed

if you want to see what you have staged type

git status .

=========CREATE SSH KEY IF NEEDED========

Github git bash help—

–Making a public ssh key- -login to github.com -click on your username in the top right. -go to edit profile -on the side nav, click on SSH keys -click add SSH KEY


first check if you have an existing key in the git bash type-

$ls -al ~/.ssh

if you do not have a key type

$ssh-keygen -t rsa -C “your_email@example.com”

it will ask you where you want to save it. Just hit enter Then create a password

create a password – hit enter type password in again – hit enter

It will then tell you identification. Where it is a long string of numbers and colons.

type into git bash-

$ clip < ~/.ssh/id_rsa.pub That copies your key to clipboard and now paste the key into your profile on github.com You now have just made your new key!

Have your say!

Have your say!


Name *

Email *

Thanks for your interest but we are no longer taking projects.

Recent Posts