![create a local repository git on mac create a local repository git on mac](https://docs.github.com/assets/cb-20366/images/help/repository/code-button.png)
If you configure Git for use with git bash, only, and use SSH authorization, Git looks for the SSH keys in the directory where the HOME environment points to. You can use the Gerrit code review tool for projects that use Git. Git is available for Windows, Linux, and macOS.
#Create a local repository git on mac how to#
The article ' How to Set Upstream Branch in Git. Git is a fast decentralized version control system. Please mind the '-u' option: it establishes a 'tracking relationship' between the existing local and the new remote branch.
![create a local repository git on mac create a local repository git on mac](https://i.stack.imgur.com/9DZwk.jpg)
The article " How to Set Upstream Branch in Git" explains this in detail.
![create a local repository git on mac create a local repository git on mac](https://wiki.eclipse.org/images/b/ba/Egit-0.11-import-projects-filled-list.png)
Please mind the "-u" option: it establishes a "tracking relationship" between the existing local and the new remote branch. Now, with the correct local branch checked out, you can publish it on a remote repository - thereby "creating" it on that remote: $ git push -u origin (2) Push the Local Branch to the Remote Repository If such a local branch doesn't yet exist, you can easily create it: # To create a new local branch. If you already have such a local branch at hand, you can simply check it out: $ git checkout As already said, creating a remote branch actually starts on the opposite end: in your local Git repository! You need to make sure you have a local branch that represents a state you want to push to the remote.