Creating git repositories on public source forges
Last updated: 20211215
Create local directory:
mkdir <repository name> && cd $_
Create repository on GitLab/Hub:
GitLab:
Menu -> Create new project -> Create blank project
GitHub:
TBD
Initialize local repository and push initial commit:
git init --initial-branch=master
git config --global user.name "Kevin Bowen"
git config --global user.email "kevin.bowen@gmail.com"
git remote add origin git@gitlab.com:kevinbowen/sampleproject.git
# git remote add origin git@github.com:kevinbowen777/sampleproject.git
git add .
git commit -m "initial commit"
git push -u origin master
No comments:
Post a Comment