---
title: "Discussion on \"Lesser-known git commands that make your job easy\" | Hashnode"
description: "Discussion on \"Lesser-known git commands that make your job easy\". 1) Create the remote branch if it doesn't exist while pushing your commits from the local branch. (SAVES YOU TIME)\nWe often want to push code to branches and not to master branch. We can use '-u' option of the git push command to create a remote bran..."
url: "https://hashnode.com/posts/lesser-known-git-commands-that-make-your-job-easy/5fb5657e4979356f7347b95e"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Lesser-known git commands that make your job easy](https://drkreddy.hashnode.dev/lesser-known-git-commands-that-make-your-job-easy?utm_source=hashnode&utm_medium=feed)

1) Create the remote branch if it doesn't exist while pushing your commits from the local branch. (SAVES YOU TIME) We often want to push code to branches and not to master branch. We can use '-u' option of the git push command to create a remote bran...

Dec 1, 2020 · 6 min read · drkreddy.hashnode.dev  
Updated Dec 3, 2020  
Read the article

-   [#2articles1week-1](https://hashnode.com/tag/2articles1week-1)
-   [#2articles1week](https://hashnode.com/tag/2articles1week)
-   [#software-development](https://hashnode.com/tag/software-development)

## Written by

[Ravindra Reddy](https://hashnode.com/@drkreddy)

@drkreddy

  
[View profile](https://hashnode.com/@drkreddy)

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
