This will "stage" all files to be added to version control, preparing them to be committed in your first commit.įor files that you want never under version control, create and populate a file named. If all files in the list should be shared with everyone who has access to the repository, a single command will add everything in your current directory and its subdirectories: git add. Review the resulting list of files you can tell Git which of the files to place into version control (avoid adding files with confidential information such as passwords, or files that just clutter the repo): git add Next, check what files Git will add to your new repository this step is worth special care: git status git, which contains the plumbing needed for Git to work. Once Git is installed, navigate to the directory you want to place under version control and create an empty Git repository: git init See the Git homepage for exceptionally clear and easy installation instructions.Īfter installing Git, configure your username and email address.
#Create a local repository git on mac install
If nothing is returned, or the command is not recognized, you may have to install Git on your system by downloading and running the installer. On UNIX-like operating systems: which git
Reflog - Restoring commits not shown in git log.Display commit history graphically with Gitk.
mailmap file: Associating contributor and email aliases