Use the following code to set the default username for your git repo git config –global user.name “jfernandez” and the following to check: git config –global user.name Use the following code to set the default email for your git repo git config –global user.email “email@example.com” and the following to check:…
It was getting a bit frustrating doing GIT Pulls and entering the BitBucket password every single time. So using an SSH key became a lot more convenient. Use the following steps to establish a connection with a repo using an SSH key:
if you have revered a commit and want the remote branch to reflect your revert + latest commits use this bit of code git push -f origin master Note that this will reset your remote (origin) master to reflect changes in your local master. Use with caution!
To handle the following problem use the following steps. press “i” write your merge message press “esc” write “:wq” then press enter