Home About Github Archives

Hoehoe blog

Javascript is poison... 😈
  • Home
  • About
  • Github
  • Archives

When you want to push from a local branch to a remote branch that is the same name

🕒 2021-08-15

When the local changes are pushed to the remote branch,

1
git push origin <current-branch-name>

It can be done with;

1
2
3
git push origin HEAD

// A handy way to push the current branch to the same name on the remote.

Ref: https://git-scm.com/docs/git-push

  • Git
Newer
OOPS! I want to undo the last push on Github
Older
Typescript note - Literal type error

Search

Recent Posts

  • React with json-server
  • OOPS! I want to undo the last push on Github
  • When you want to push from a local branch to a remote branch that is the same name
  • Typescript note - Literal type error
  • Typescript note - Generics
  • How to execute multiple functions in ternary operator
  • Create dotnet console app with terminal
  • react-testing-library: Change the size of debug's output
  • Dev note
  • Format setting for react/jsx-tag-spacing with Web Storm

Tag Cloud

.Net API Accessibility Angular CSS Chrome Extensions Cypress ES2015 Express Git Hack Heroku Hexo Hoe Javascript Jest Mac Mapbox Markdown Mongo Node Objective Parcel React Regex Splunk Stackoverflow Terminal Typescript VS Code WebStorm Webpack dotenv json-server npm redux-dev-tools

Archives

  • September 20211
  • August 20214
  • July 20213
  • March 20212
  • February 20211
  • December 20201
  • September 20201
  • July 20205
  • June 20205
  • May 20204
  • April 20201
  • March 20201
  • February 20204
  • January 20201
  • November 20191
  • September 20194
  • August 20192
  • July 20193
  • April 201911
© 2021 hoehoetester
Powered by Hexo