
If you already have a local Git repository setup, all you will need to do is setup the remote reference for the new Codebase repository and push all branches to it, using the following commands. $ git remote add origin git push origin master Initial commit 0 files changed, 0 insertions(+), 0 deletions(-)įinally you will need to add a remote reference for the codebase repository that you have made and push all changes to the new reference ('origin'). The next thing to do is to tell Git that you want to add all the files in this directory to a version and commit them, you do that with the following commands. Initialized empty Git repository in path/to/local/folder Then you will need to initialise Git in this directory by running the following command. use the following command (replacing 'path/to/local/folder' with your file path) $ cd path/to/local/folder Once you have git installed you will need to start by running the following commands in your command line / terminal to tell Codebase who you are (replacing 'username' and 'email' with your user information) $ git config -global user.name "username"Įnter the directory on your local machine that you want to push to codebase. Install and configure Git on your computer Pushing your Git repositoryįirstly you will need to make sure you have Git installed on your system and have your SSH Public Key linked to codebase, if you do not have either of these then please look at the

#TORTOISEHG CREATE REPOSITORY FROM EXISTING FOLDER HOW TO#
If you have just created a new repository or navigated to an empty repository you will be given directions (below) on how to push your project to your codebase repository.
