Last active
June 17, 2020 08:27
-
-
Save weiancheng/07e1807b8caa092dfa510e1f8c6d02d4 to your computer and use it in GitHub Desktop.
[git command] #git #gitignore
This file contains hidden or 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
# get remote repository | |
git clone URL | |
# create new branch | |
git branch new_branch_name | |
git branch | |
git push origin new_branch_name | |
# delete branch | |
git branch -d branch_name | |
git push origin :branch_name | |
# remove a remote commit | |
git reset --hard HEAD~ | |
git push origin +master // or another branch name | |
# add something to a commit which is already existed | |
git add -u | |
git commit --amend | |
git push | |
# modify the conmment of commit | |
git commit --amend |
This file contains hidden or 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
# Built application files | |
*.apk | |
*.ap_ | |
*.aab | |
# Files for the ART/Dalvik VM | |
*.dex | |
# Java class files | |
*.class | |
# Generated files | |
bin/ | |
gen/ | |
out/ | |
release/ | |
# Gradle files | |
.gradle/ | |
build/ | |
# Local configuration file (sdk path, etc) | |
local.properties | |
# Proguard folder generated by Eclipse | |
proguard/ | |
# Log Files | |
*.log | |
# Android Studio Navigation editor temp files | |
.navigation/ | |
# Android Studio captures folder | |
captures/ | |
# IntelliJ | |
*.iml | |
.idea/workspace.xml | |
.idea/tasks.xml | |
.idea/gradle.xml | |
.idea/assetWizardSettings.xml | |
.idea/dictionaries | |
.idea/libraries | |
# Android Studio 3 in .gitignore file. | |
.idea/caches | |
.idea/modules.xml | |
# Comment next line if keeping position of elements in Navigation Editor is relevant for you | |
.idea/navEditor.xml | |
# Keystore files | |
# Uncomment the following lines if you do not want to check your keystore files in. | |
#*.jks | |
#*.keystore | |
# External native build folder generated in Android Studio 2.2 and later | |
.externalNativeBuild | |
# Google Services (e.g. APIs or Firebase) | |
# google-services.json | |
# Freeline | |
freeline.py | |
freeline/ | |
freeline_project_description.json | |
# fastlane | |
fastlane/report.xml | |
fastlane/Preview.html | |
fastlane/screenshots | |
fastlane/test_output | |
fastlane/readme.md | |
# Version control | |
vcs.xml | |
# lint | |
lint/intermediates/ | |
lint/generated/ | |
lint/outputs/ | |
lint/tmp/ | |
# lint/reports/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment