My Authors
Read all threads
#Git Tips 👉 This is how to remove sensitive data from history, after a push 😎

#GitHub #DevTips #100DaysOfCode #CodeNewbie #301DaysOfCode
#Git Tips 👉 To show all the tracked and untracked files. #GitHub #DevTips #100DaysOfCode #CodeNewbie #301DaysOfCode
#Git Tips 👉 This one comes in handy when you accidentally commit something with a typo or misleading commit message. The -v is optional, but I like it coz it shows lot of info about changes which helps to write a more descriptive commit message. #100DaysOfCode #CodeNewbie
#Git Tips 👉 You should never amend commits that have been pushed up to a public/shared branch! Only amend commits that only exist in your local copy or you're gonna have a terrible time. #GitHub #DevTips #100DaysOfCode #CodeNewbie #301DaysOfCode
#Git Tips 👉 Revert local branch: This command reverts the branch to the remote branch, and discard all local commits.

#GitHub #DevTips #100DaysOfCode #CodeNewbie #301DaysOfCode
#Git Tips 👉 A common Git workflow

- Mess up your Git repository.
- Google some error messages and read cryptic posts.
- Try a few fixes.
- Tear hair out.
- Delete repository and clone again.

#GitHub #DevTips #100DaysOfCode #CodeNewbie #301DaysOfCode
#Git Tips 👉 This how to clone a single branch using Git:

#GitHub #DevTips #100DaysOfCode #CodeNewbie #301DaysOfCode
#Git Tips 👉 This is how you can change a branch base.

#GitHub #DevTips #100DaysOfCode #CodeNewbie #301DaysOfCode
#Git Tips 👉 Quick way of removing a branch on the remote from the local system using the push command. It is assumed that you've to write access to the remote.

#GitHub #DevTips #100DaysOfCode #CodeNewbie #301DaysOfCode
#Git Tips 👉 For Git everything is about commits, a commit is an object that includes several keys such as a unique ID, a pointer to the snapshot of the staged content and pointers to the commits that came directly before that commit

#GitHub #DevTips #100DaysOfCode #CodeNewbie
#Git Tips 👉 Did you know that Git is very capable tool when it comes to debugging issues in your codebase? Git Blame helps you extensively analyze history of file, whereas Bisect process initiates a binary search through your commits. #GitHub #DevTips #100DaysOfCode #CodeNewbie
#Git Tips 👉 if you wish to completely avoid push --force, #GitHub and GitLab offers a very cool feature called Protected Branches, which allows you to mark any branch as protected so no one will be able to push — force it #DevTips #100DaysOfCode #CodeNewbie #301DaysOfCode
@joelnet #Git Tips 👉 This git config command sets the author's name and email address. This will appear with your commits.

#GitHub #100DaysOfCode #CodeNewbie #301DaysOfCode #DevTips
@joelnet #Git Tips 👉 This git branch command basically shows you a list of branches.

#GitHub #100DaysOfCode #CodeNewbie #301DaysOfCode #DevTips
@joelnet #Git Tips 👉 This git fetch command basically refers from a remote repository into your local repository.

#GitHub #100DaysOfCode #CodeNewbie #301DaysOfCode #DevTips
@joelnet #Git Tips 👉 This git checkout command always allows you to switch into a different branch, create a new branch or reset your file changes.

#GitHub #100DaysOfCode #CodeNewbie #301DaysOfCode #DevTips
@joelnet #Git Tips 👉 This git cherry-pick command is used to take out some commits from one branch and add it to another branch.

#GitHub #100DaysOfCode #CodeNewbie #301DaysOfCode #DevTips
@joelnet #Git Tips 👉 This git reset command is used to return the entire working directory to the last committed state.

#GitHub #100DaysOfCode #CodeNewbie #301DaysOfCode #DevTips
@joelnet #Git Tips 👉 To create shorter git commands with git aliases. To add new ones, use the following command

#GitHub #100DaysOfCode #CodeNewbie #301DaysOfCode #DevTips
#Git Tips 👉 If you think the commit history of your current feature branch could use a little cleanup 'git rebase' might come in handy.

#GitHub #100DaysOfCode #CodeNewbie #301DaysOfCode #DevTips
#Git Tips 👉 If your 'branch' had already been pushed to your 'remote' before rewriting its history you will have to be explicit about overwriting it.

#GitHub #100DaysOfCode #CodeNewbie #301DaysOfCode #DevTips
#Git Tips 👉 Git alias is saved in Git config file. It lets you execute longer Git commands by predefined shortcut. Just use 'git last' to access the log of your last commit.

#GitHub #100DaysOfCode #CodeNewbie #301DaysOfCode #DevTips
#Git Tips 👉 The big advantage of 'git merge' is that the history of the commit stays clear and unchanged.

The disadvantage is that a large number of merge commits can make the branch history unreadable.

#GitHub #100DaysOfCode #CodeNewbie #301DaysOfCode #DevTips
#Git Tips 👉 One way to undo commits is by using checkout. To return to the previous commit, type:

#GitHub #100DaysOfCode #CodeNewbie #301DaysOfCode #DevTips
#Git Tips 👉 Prior to merge make sure your on the branch you want to merge into. If you're not sure which branch you're on, run 'git status'. If you're on the wrong branch, run 'git checkout <branch-name>' to switch to correct branch

#GitHub #100DaysOfCode #CodeNewbie #DevTips
#Git Tips 👉 Once your feature branch is merged into master you can delete it since it changes have been incorporated into master.

#GitHub #100DaysOfCode #CodeNewbie #DevTips #301DaysOfCode
#Git Tips 👉 To Keep a clean git source tree and squash your branches before merging! This #zsh script squashes all commits on your branch.

dev.to/prowe214/a-zsh…

#GitHub #100DaysOfCode #CodeNewbie #DevTips #301DaysOfCode
#Git Tips 👉 If you are not happy with vi, then you're free to use another editor for your commits by adding this to your Git.

#GitHub #100DaysOfCode #CodeNewbie #DevTips #301DaysOfCode
#Git Tips 👉 Simple git aliases for daily purpose and this syntax is the one I forget the most.

#GitHub #100DaysOfCode #CodeNewbie #DevTips #301DaysOfCode
#Git Tips 👉 This command will filter out the commits by the given time period. (Filter commits by time period)

#GitHub #100DaysOfCode #CodeNewbie #DevTips #301DaysOfCode
#Git Tips 👉 With the 3 following commands you can move your files from one stage to the other.

#GitHub #100DaysOfCode #CodeNewbie #DevTips #301DaysOfCode
#Git Tips 👉 With this single command we are running fetch followed by merge. If there are conflicts, a warning will appear informing you about them, so that you can resolve them before completing the merge.

#GitHub #100DaysOfCode #CodeNewbie #DevTips #301DaysOfCode
#Git Tips 👉 This is how you can check all the remote URLs using this command.

#GitHub #100DaysOfCode #CodeNewbie #DevTips #301DaysOfCode
#Git Tips 👉 After completing the commits, Just push to the remote URL using this simple command.

#GitHub #100DaysOfCode #CodeNewbie #DevTips #301DaysOfCode
#Git Tips 👉 To only get the most recent version of the files, suppress the default checkout of all files with. depth 1 option means get only most recent version.

#GitHub #100DaysOfCode #CodeNewbie #DevTips #301DaysOfCode
#Git Tips 👉 The Ultimate Git Beginner Reference Guide

dev.to/mukulrathi_/th…

#GitHub #100DaysOfCode #CodeNewbie #DevTips #301DaysOfCode
#Git Tips 👉 To view your "undo" history. reflog is your safety net after running "scary" command.. You'll be able to see not only the commits you made but each of the actions that led you there.

#GitHub #100DaysOfCode #CodeNewbie #DevTips #301DaysOfCode
#Git Tips 👉 To see the differences in your staged (or unstaged) changes.

#GitHub #100DaysOfCode #CodeNewbie #DevTips #301DaysOfCode
#Git Tips 👉 Git hooks are custom scripts that you can use to automate tasks that will be triggered either immediately before or after a Git command is executed.

git-scm.com/book/en/v2/Cus…

#GitHub #100DaysOfCode #CodeNewbie #DevTips #301DaysOfCode
#Git Tips 👉 This is how to add more files and changes to a commit before pushing.

#GitHub #100DaysOfCode #CodeNewbie #DevTips #301DaysOfCode
#Git Tips 👉 git reset command is a complex and versatile tool for undoing changes. It has three primary forms of invocation. These forms correspond to CLI arguments --soft, --mixed, --hard.

#GitHub #100DaysOfCode #CodeNewbie #DevTips #301DaysOfCode
#Git Tips 👉 Remove a file you already pushed to the git repository.

#GitHub #100DaysOfCode #CodeNewbie #DevTips #301DaysOfCode
Missing some Tweet in this thread? You can try to force a refresh.

Keep Current with Naveen Deno 😎 🇮🇳

Profile picture

Stay in touch and get notified when new unrolls are available from this author!

Read all threads

This Thread may be Removed Anytime!

Twitter may remove this content at anytime, convert it as a PDF, save and print for later use!

Try unrolling a thread yourself!

how to unroll video

1) Follow Thread Reader App on Twitter so you can easily mention us!

2) Go to a Twitter thread (series of Tweets by the same owner) and mention us with a keyword "unroll" @threadreaderapp unroll

You can practice here first or read more on our help page!

Follow Us on Twitter!

Did Thread Reader help you today?

Support us! We are indie developers!


This site is made by just two indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member ($3.00/month or $30.00/year) and get exclusive features!

Become Premium

Too expensive? Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal Become our Patreon

Thank you for your support!