Git -- new repository setup

From One-Eyed Man Wiki
Revision as of 11:45, 6 March 2023 by Dwrob (talk | contribs) (Comment)
Jump to navigation Jump to search

Note that the URL in my case is defined via ~/.ssh/config. I write it directly into .../[repo]/.git/config.

On server:

mkdir my_project.git
cd my_project.git
git --bare init

On client:

mkdir my_project
cd my_project
touch .gitignore
git init
git add .
git commit -m "Initial commit"
git remote add origin
git push origin master