Skip to content

Instantly share code, notes, and snippets.

View Sekiphp's full-sized avatar

Luboš Hubáček Sekiphp

View GitHub Profile
@Sekiphp
Sekiphp / gist:e82bf56427af6bd2106796d2d0f9a994
Created November 23, 2018 15:11
Count of lines in current dir
find . -type f | xargs cat | wc -l
User@DESKTOP-QSKO7HF MINGW64 /c/useful-scripts (master)
$ echo "alias gch=/c/useful-scripts/git/commit_helper.sh" >> ~/.bashrc
$ echo "alias gbu=/c/useful-scripts/git/branch_update.sh" >> ~/.bashrc
$ echo "alias gbc=/c/useful-scripts/git/branch_create.sh" >> ~/.bashrc
$ echo "alias gcb=/c/useful-scripts/git/branch_create.sh" >> ~/.bashrc
User@DESKTOP-QSKO7HF MINGW64 /c/useful-scripts (master)
$ cat ~/.bashrc
alias gch=/c/useful-scripts/git/commit_helper.sh
alias gbu=/c/useful-scripts/git/branch_update.sh
$ git remote -v
$ git remote set-url origin https://login@bitbucket.org/organization/repository
git config --list
git remote -v
git remote set-url origin https://_LOGIN_@bitbucket.org/_PATH/TO/REPOSITORY_.git
@Sekiphp
Sekiphp / gist:33ae83e0713dd95cefc90c076cff73da
Created September 3, 2018 12:52
GIT: Number of changed rows
git diff --stat HEAD
@Sekiphp
Sekiphp / update_repo.sh
Last active September 27, 2018 08:27
Cleanup of remote developer repository
#!/bin/bash
clear
git fetch
git reset --hard
git checkout master
git checkout -- .
git clean -fd .
rm -rf media
git pull