git help
Commit to remote
git add
git commit -m "changes"
git push
git add
git rm
git rm $(git ls-files --deleted) //rm all
git add $(git ls-files --modified)
Multiline (With description)
git config --global core.editor "gedit -w"
git commit
Sync with remote
git fetch
git checkout
git pull
login
Brunches
New brunch
git checkout -b cm-12.1
Switch
git checkout cm-12.1
Push to remote
git push https://github.com/andr7e/android_vendor_fly_iq446 cm-12.1
Syncing a fork
Configuring
git remote -v // show
git remote add upstream https://github.com/CyanogenMod/android_frameworks_native.git
Syncing
git fetch upstream
git merge upstream/cm-12.1
Man:
https://help.github.com/articles/syncing-a-fork/
https://help.github.com/articles/configuring-a-remote-for-a-fork/
Conflicts
https://githowto.com/ru/resolving_conflicts
Commit to remote
git add
git commit -m "changes"
git push
git add
git rm
git rm $(git ls-files --deleted) //rm all
git add $(git ls-files --modified)
Multiline (With description)
git config --global core.editor "gedit -w"
git commit
Sync with remote
git fetch
git checkout
git pull
login
git remote add origin https://
user
@hostname/user/repo.git
Brunches
New brunch
git checkout -b cm-12.1
git push -u origin <branch>
Switch
git checkout cm-12.1
Push to remote
git push https://github.com/andr7e/android_vendor_fly_iq446 cm-12.1
Syncing a fork
Configuring
git remote -v // show
git remote add upstream https://github.com/CyanogenMod/android_frameworks_native.git
Syncing
git fetch upstream
git merge upstream/cm-12.1
Man:
https://help.github.com/articles/syncing-a-fork/
https://help.github.com/articles/configuring-a-remote-for-a-fork/
Conflicts
https://githowto.com/ru/resolving_conflicts
svn
svn st | grep ^! | awk '{print " --force "$2}' | xargs svn rm
Bash
Статистика по исходникам
Кол-во файлов в папке:
find . -type f | wc -l
Кол-во строк во всех файлах:
find . -type f -exec wc -l {} \; | awk 'BEGIN{sum=0}{sum+=$1;}END{print sum;}'
Комментариев нет:
Отправить комментарий