You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Josh Wiggs edited this page Nov 19, 2019
·
3 revisions
How to Configure git
This guide assumes that you wish to start using git with the projects present in this repository (repo). More complete guides on using git can be found using the bitbucket tutorials or using the git reference guide.
First, ensure you are in the directory that you want the project repo to be pulled into. Then use the following command to create a copy on your machine
git clone URL
where URL is the address of the repo.
Once you have cloned the repo change directory into it. Assuming you have not already configured your user profile for git globally you will need to add a name and email to the config. This can be done using
Cloning the repo from the origin will pull down the branch attached to the head, usually the master branch. You can check which branches you a copy of on your local terminal using
git branch
If you want to check what branches there are available at the origin use
git branch --remote
To change to a different branch
git checkout NewBranch
if the new branches name matches one available at the origin then git will automatically sync the local one to it.