---
title: "Discussion on \"Git & GitHub Tricks\" | Hashnode"
description: "Discussion on \"Git & GitHub Tricks\". Branches\nCheck current branch:\ngit branch\nCreate new branch\ngit checkout -b feature-branch-name\nNote: this command will also switch from current branch to the new branch\nSynch a feature branch to the main branch\ngit checkout main-branch\ngit pull\ngit ..."
url: "https://hashnode.com/posts/git-github-tricks/632b3e37c63fa0e8e95a820e"
---

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

Discussion

# [Git & GitHub Tricks](https://bzzz.hashnode.dev/git-github-tricks?utm_source=hashnode&utm_medium=feed)

Branches Check current branch: git branch Create new branch git checkout -b feature-branch-name Note: this command will also switch from current branch to the new branch Synch a feature branch to the main branch git checkout main-branch git pull git ...

Sep 21, 2022 · 3 min read · bzzz.hashnode.dev  
Updated Mar 17, 2023  
Read the article

-   [#github](https://hashnode.com/tag/github)
-   [#git](https://hashnode.com/tag/git)

## Written by

[B Z](https://hashnode.com/@Bzzz)

@Bzzz

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

Software engineer, artist, paw parent of two sweet cats.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
