How To List All Tags With The Message In git
1 2 |
git tag -n git tag -n3 |
Show All Branches, Local and Remote
1 |
git branch -a |
Show Local Branches
1 |
git branch |
Show Remote Branches
1 |
git branch -r |
To fetch all remote branches locally
1 2 3 |
git branch -r | grep -v '\->' | sed "s,\x1B\[[0-9;]*[a-zA-Z],,g" | while read remote; do git branch --track "${remote#origin/}" "$remote"; done git fetch --all git pull --all |
First, get on the branch that you know already has the commits you are looking for:
1 |
git checkout theBranch-1234 |
Copy-and-paste the commit(s) you want:
1 |
git log |
~or~
1 |
git log -p |
Optionally, display the code changes for a visual confirmation:
1 |
git show {one or more commit ID's} |
Finally, extract the list of branches that contain the desired commits:
1 2 |
git branch --contains CommitID-A git branch --contains CommitID-B |
Example:
1 2 3 |
git log git branch --contains 097e1859f248a7aa5e148a2a946be3e360030095 git branch --contains 24339549f9f1920a33f721d3faa2538c8ba5d249 |
Recently, I wanted to see the “origin” of the git repository I was working in. The command is: git remote -v For example:
1 2 3 |
theUser@theHost$ git remote -v origin git@localhost:/volumes/data/git/thePlugin.git (fetch) origin git@localhost:/volumes/data/git/thePlugin.git (push) |
The Problem Tried to load a Tab-delimited text file into MuSQL 5.6.43 and got the following error: mysql> LOAD DATA INFILE ‘sample.txt’ INTO TABLE test_table; ERROR 1290 (HY000): The MySQL server is running with the –secure-file-priv option so it cannot execute this statement Solution One mysql> SHOW VARIABLES LIKE “secure_file_priv”; Copy the file into the […]
To display the filenames included in each commit, just add the –name-only argument to git log:
1 |
git log --name-only |
SET THE DEFAULT TO SHOW Run this command in a Terminal window: defaults write com.apple.finder AppleShowAllFiles YES Relaunch Finder: Hold down the Option/ALT key on your keyboard, then right-click the Finder icon in the dock and select Relaunch. SET THE DEFAULT TO HIDE defaults write com.apple.finder AppleShowAllFiles NO then relaunch finder as above.
1 |
mysql -u {user} --password={password} -h 127.0.0.2 -e 'show full processlist\G' |
1 2 |
cd {repository_directory} git remote -v show |
1 2 3 |
$('.dataTables_length select').live('change', function(){ alert(this.value); }); |