508 B
508 B
Git
Git setup
git config --global user.name "John Doe"- configure global usergit config --global user.email johndoe@example.com- configure global user email
Add new commit
git init- initiallize repositorygit add README.md- add file/s to repositorygit commit -m "first commit"- commit filegit branch -M main
Remote repository push
git remote add origin https://github.com/foglar/[name].git- add remote urlgit push origin master- push master branch