Idea thread by @parik36 - Git Commands Every Developer Should Know - Deepstash
Idea thread by @parik36 - Git Commands Every Developer Should Know

Idea thread by @parik36 - Git Commands Every Developer Should Know

Curated from: twitter.com

Ideas, facts & insights covering these topics:

20 ideas

·

43 reads

Explore the World's Best Ideas

Join today and uncover 100+ curated journeys from 50+ topics. Unlock access to our mobile app with extensive features.

📌 git init

Initializes a new Git repository

1

20 reads

📌 git add

Adds files to the staging area.

You can use 'git add .' to add all modified files.

1

5 reads

📌 git reset

Undos the changes to the local files, restores to last commit.

1

1 read

📌 git diff

Displays the difference between files in two commits or between a commit and your current repository.

1

1 read

📌 git status

Used to check the state of the staging area, as well as the working directory.

1

1 read

📌 git commit -m "message"

Used to commit files (locally) on the repository.

1

1 read

📌 git log

Used to view the entire commit history.

1

1 read

📌 git clone

Used to download existing code from a remote respository.

1

1 read

📌 git branch

Used to list all the local branches on the machine.

1

1 read

📌 git branch <branch-name>

Used to create a new branch locally.

1

1 read

📌 git branch -d

Used to delete a branch.

1

1 read

📌 git branch -m

Used to rename the current working branch.

1

1 read

📌 git merge

Merges the provided branch with the current working branch.

1

1 read

📌 git checkout

Used to switch from current branch to another one.

1

1 read

📌 git checkout -b

Creates a new branch and switches to the new one.

1

1 read

📌 git push

Used to save all commits to the remote repository.

1

1 read

📌 git pull

Used to pull down all the updates rom the remote repository.

1

1 read

📌 git rm

Used to remove a file from the working directory.

1

1 read

📌 git stash

Used to temporarily remove uncommitted changes.

1

1 read

Finally, if you want to remove Git entirely from a project, just open the directory, make sure you are able to view hidden files, and delete the '.git' folder.

1

1 read

IDEAS CURATED BY

gostashy

Save and turn your favorite Twitter threads into ideas. Make them easier to read and get back to.

Read & Learn

20x Faster

without
deepstash

with
deepstash

with

deepstash

Personalized microlearning

100+ Learning Journeys

Access to 200,000+ ideas

Access to the mobile app

Unlimited idea saving

Unlimited history

Unlimited listening to ideas

Downloading & offline access

Supercharge your mind with one idea per day

Enter your email and spend 1 minute every day to learn something new.

Email

I agree to receive email updates