---
title: "Discussion on \"GIT Version control - Working locally\" | Hashnode"
description: "Discussion on \"GIT Version control - Working locally\". #GIT"
url: "https://hashnode.com/posts/git-version-control-working-locally/64d9f73f24b60e56fcce6052"
---

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

Discussion

# [GIT Version control - Working locally](https://eraki.hashnode.dev/git-version-control-working-locally?utm_source=hashnode&utm_medium=feed)

#GIT

Aug 14, 2023 · 8 min read · eraki.hashnode.dev  
Updated Apr 1  
Read the article

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

## Written by

[Mohamed Eraki](https://hashnode.com/@mohamed-eleraky)

@mohamed-eleraky · Egypt, New Cairo

  
[View profile](https://hashnode.com/@mohamed-eleraky)

Multi-Cloud &amp; DevOps Engineer experience in enterprise and FinTech environments, specializing in cloud platforms, DevOps, IaC......

Multi-Cloud &amp; DevOps Engineer experience in enterprise and FinTech environments, specializing in cloud platforms, DevOps, IaC, and Python with a focus on FinOps, Security, and operational excellence.

## Responses 2

Markdown supported · ⌘↵ to post

[Mohamed Eraki](https://hashnode.com/@mohamed-eleraky)

[Sep 17, 2023](https://hashnode.com/posts/git-version-control-working-locally/64d9f73f24b60e56fcce6052/comment/6506756c5b0b2cfbc555f594)

for more info follow:

[trainingportal.linuxfoundation.org/learn/course/a…](https://trainingportal.linuxfoundation.org/learn/course/a-beginners-guide-to-linux-kernel-development-lfd103/getting-your-patch-ready-and-sending-it/getting-your-patch-ready-and-sending-it?page=1)

[mohamed-eleraky.atlassian.net/wiki/spaces/D/pages…](https://mohamed-eleraky.atlassian.net/wiki/spaces/D/pages/edit-v2/19857409)

[Mohamed Eraki](https://hashnode.com/@mohamed-eleraky)

[Sep 17, 2023](https://hashnode.com/posts/git-version-control-working-locally/64d9f73f24b60e56fcce6052/comment/650673775b0b2cfbc555f568)

```
git format-patch <commit hash> # Create a file of changes that have been done in this commit


git format-patch -2 <commit hash> # determine the number of patches for multiple commits | will get two commit start from the hash mentioned
```

[Mohamed Eraki](https://hashnode.com/@mohamed-eleraky)

[Sep 16, 2023](https://hashnode.com/posts/git-version-control-working-locally/64d9f73f24b60e56fcce6052/comment/6505ebb9dbce26f1bafa0c48)

```
git grep uvcvideo -- '*Makefile'
```

[poe.com/s/RSJd2dWisv8ItRZe9FDp](https://poe.com/s/RSJd2dWisv8ItRZe9FDp) [mohamed-eleraky.atlassian.net/wiki/spaces/D/pages…](https://mohamed-eleraky.atlassian.net/wiki/spaces/D/pages/edit-v2/19857409)

[Mohamed Eraki](https://hashnode.com/@mohamed-eleraky)

[Sep 16, 2023](https://hashnode.com/posts/git-version-control-working-locally/64d9f73f24b60e56fcce6052/comment/6505eaabdbce26f1bafa0c3b)

To check out and create a branch at the same time do:

```
git checkout -b work
```

[Mohamed Eraki](https://hashnode.com/@mohamed-eleraky)

[Sep 16, 2023](https://hashnode.com/posts/git-version-control-working-locally/64d9f73f24b60e56fcce6052/comment/6505e9d24f2724f559f24ee7)

INFO: Let’s add git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git as the remote named linux. Adding a remote helps us fetch changes and choose a tag to rebase from.

```
git remote add linux git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git


git fetch linux
```
