Techie June 2020
Git is used as a version control system. If you don’t already have a Github account, register one.
# List SSH keys on your machine
ls -al ~/.ssh
# Switching remote URL from SSH to HTTPS
git remote set-url origin https://github.com/USERNAME/REPOSITORY.git
# Switching remote URL from HTTPS to SSH
git remote set-url origin git@github.com:USERNAME/REPOSITORY.git
# Create a new branch
git checkout -b your_branch_name
# List available branches
git branch
# Navigate to a branch
git checkout your_branch_name
# Check Git status
git status
# Force unrelated merge
git merge your_branch_name --allow-unrelated-histories
That’s it!
See you in the next tuts