AJAvnish Jayaswalinavy.hashnode.dev·Oct 4, 2021 · 1 min readgit push –forceIn some situations where you deliberately want to overwrite the commit history on the remote with your local one. This is when git push –force comes into play. The –force option for git push allows you to override Fast forward rule: the commit hist...00
AJAvnish Jayaswalinavy.hashnode.dev·Oct 4, 2021 · 1 min readHow to git soft reset last commitgit reset” command with the “–soft” option that will preserve changes done to your files. You have to specify the commit to undo which is “HEAD~1” in this case. The last commit will be removed from your Git history. git reset --soft HEAD^ // going b...00
AJAvnish Jayaswalinavy.hashnode.dev·Oct 4, 2021 · 2 min readHow to upload a project to GithubHow to upload a project to Github Steps 1 – First you need to install Git and install it on your PC then you need to create your profile on Github https://github.com, make a repository and clone. 2 – Open Git and use the following command to clone...00
AJAvnish Jayaswalinavy.hashnode.dev·Oct 4, 2021 · 1 min readHow to git push heroku masterWhen pushing code to a repository hosted on Heroku one need to use the following command git push heroku master in the above command What do heroku and master “heroku” is a shorthand name for the remote repository that a project was originally clon...00