Do you know that questions about git get the most views on StackOverflow? I've searched a lot on Google how to execute certain actions with git, and this actually slowed me down a lot. There are some actions that we tend to use a lot, so it's good to learn them. Here are my favorites, learning from friends and internet, hope you find them useful.Before we begin, you should run git — version to check your current git version, mine is 2.12.2 as in macOS High Sierra. Here is the official git documentation, you can read details about git commands, parameters and new releases of git.Table of ContentsUseful commandsGit aliasGUI clientsCheck before you commitWhere to go from hereUseful commands🔍 StatusCheck the status of working directory and staging area:git statusShow changes between HEAD and working directory:git diffShow the list of commits in one line format:git log --onelineShow commits that make add or remove a certain string:git log -S 'LoginViewController'Search commits that contain a log message:git log — all — grep='day of week'🔍 TagList all tags:git tagTag a commit:git tag -a 1.
I guess you came to this post by searching similar kind of issues in any of the search engine and hope that this resolved your problem. If you find this tips useful, just drop a line below and share the link to others and who knows they might find it useful too.
Stay tuned to my blog, twitter or facebook to read more articles, tutorials, news, tips & tricks on various technology fields. Also Subscribe to our Newsletter with your Email ID to keep you updated on latest posts. We will send newsletter to your registered email address. We will not share your email address to anybody as we respect privacy.
Stay tuned to my blog, twitter or facebook to read more articles, tutorials, news, tips & tricks on various technology fields. Also Subscribe to our Newsletter with your Email ID to keep you updated on latest posts. We will send newsletter to your registered email address. We will not share your email address to anybody as we respect privacy.
This article is related to
git,ios-app-development,mobile-app-development,ios,swift
git,ios-app-development,mobile-app-development,ios,swift
0 Comments