This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 1. rename local branch | |
git branch -m new_branch | |
# 2. delete old branch from remote | |
git push origin :old_branch | |
# 3. push & create new branch to upstream | |
git push --set-upstream origin new_branch |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 1. rename local branch | |
git branch -m new_branch | |
# 2. delete old branch from remote | |
git push origin :old_branch | |
# 3. push & create new branch to upstream | |
git push --set-upstream origin new_branch |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
. solution already provided by CodeMirror (https://codemirror.net/demo/resize.html#). | |
. to implement it, we must create an browser app in order to load it each time a gist editor will be opened | |
. in case of chrome, app already created, you can use it and follow manual for more details | |
(https://github.com/haythamdouaihy/github-editor-textarea-enlarger-chrome-ext) | |
*/ | |
.CodeMirror { | |
border: 1px solid #eee; | |
height: auto; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# store the current dir | |
CUR_DIR=$(pwd) | |
# retrieve base repo parameter | |
# 1st param: alias of the remote repo URL (example: origin) | |
# 2nd param: remote branch name (example: master) | |
BASE_REPO="$1"/"$2" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- query that returns duplicate colum value | |
select | |
count(<duplicated_column_name>), | |
<duplicated_column_name>, | |
<other> | |
from | |
<table_name> | |
group by | |
<duplicated_column_name> | |
HAVING |