Get git autocompletion in 2 mins. Run the following commands: Step 1 Step 2 Add the following to your ~/.bash_profile file: Step 3 Apply the changes: If you don’t have permission, run: Step 4 Test
–help is your friend after git + <your_command> Step 1: Check your branch Step 1a: If you need to create a branch Step 1b: If you need to delete a branch Others to keep in mind Step 2: Checking your remote NB: add -v for verbose Step 3: Staging your changes Step 3a: Un-staging your… Read More »
In your Git repository, run the command to “verify” your remote repository definition. This should show something like To add another “origin”, run the command For example: Note that you have to use a unique name. Now run remote -v again To remove a remote, run Why would you want to do this? You would… Read More »
If you are getting the following error: xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun you probably have updated to Mojave. The fix is really simple and quick. Run this command in terminal. > xcode-select –install Then test with git –version and all should be well.
In Ubuntu, this comes out of the box but in terminal on OSX a few extra steps are required to get this to work. It is a bit of a hassle figuring out what needs to be done, but once you know, it literally takes 10 seconds. Step 1: Download auto completion script: >> cd… Read More »