git init
git add somefile
git commit -m "initial commit"
git remote add origin https://github.com/username/new_repo
git push -u origin master
echo "# Nelson_Mandela_Tribute_page" >> README.md
git init
git add README.md
git commit -m "first commit"
git branch -M main
git remote add origin https://github.com/{github username}/{git title}.git
git push -u origin main
echo "# repo-name" >> README.md
git init
git add README.md
git commit -m "first commit"
git branch -M main
git remote add origin <repo url>
git push -u origin main
cd /path/to/my/codebase
git init
git add .
git commit -m "my comment"
$ git remote add origin git@github.com:username/new_repo
$ git push -u origin master
echo "# special-octo-barnacle" >> README.md
git init
git add README.md
git commit -m "first commit"
git branch -M main
git remote add origin https://github.com/thecoder-co/special-octo-barnacle.git
git push -u origin main
$ git init # You're done!
$ git remote add origin url_of_your_git_server # So that you can push your code somewhere.
--::-- Using SSH --::--
#### Create SSH key ####
$ ssh-keygen -t ed25519 -C "<YourEmail>@<Domain>.com"
#### Copy the SSH key ####
$ cat /path/to/private_key_file.pub
#### Add the SSH key to your GitHub account ####
$ echo "# myPracticeRepo" >> README.md
$ git init
$ git add README.md
$ git commit -m "first commit"
$ git branch -M main
$ git config core.sshCommand 'ssh -i /path/to/private_key_file'
$ git remote add origin git@github.com:<UserName>/<RepoName>.git
$ git push -u origin main
--::-- Using HTML --::--
$ echo "# myPracticeRepo" >> README.md
$ git init
$ git add README.md
$ git commit -m "first commit"
$ git branch -M main
$ git remote add origin https://github.com/<UserName>/<RepoName>.git
$ git push -u origin main
$ git remote add origin git@github.com:username/new_repo
$ git push -u origin master
$ git remote add origin git@github.com:username/new_repo
$ git push -u origin master
git clone https://gitlab.com/bokkyoon/oldversion/bokkyoon-backend.git
cd bokkyoon-backend
git switch -c main
touch README.md
git add README.md
git commit -m "add README"
git push -u origin main
$ git remote add origin git@github.com:username/new_repo
$ git push -u origin master
$ git remote add origin git@github.com:username/new_repo
$ git push -u origin master
$ git remote add origin https://github.com/username/new_repo
The git init command creates a new Git repository.
This will include the application in that particular folder and
create a hidden .git directory where the repository history and settings will be stored
cd existing_folder
git init --initial-branch=main
git remote add origin https://gitlab.com/bokkyoon/oldversion/bokkyoon-backend.git
git add .
git commit -m "Initial commit"
git push -u origin main
$ git remote add origin git@github.com:username/new_repo
$ git push -u origin master
$ git remote add origin git@github.com:username/new_repo
$ git push -u origin master
$ git remote add origin git@github.com:username/new_repo
$ git push -u origin master
git_commands
git configuration