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
For the sake of simplicity, in this example walkthrough, it is supposed that the repository data will be stored in a folder named git-private. It can help reduce clutter to keep all repositories in the same directory.
Creating a repository
Choose where you want the repo you will work on to be:
cd ~/path/to/folder
Create the folder you want to be a repo and enter the directory:
mkdir repo_name
cd repo_name
Initialize the repository:
git init
Then create a README.md to facilitate creating an initial commit:
This will give you something to add to your first commit (you can't commit nothing).