git cheasheet
parent
8b8d5679cf
commit
c6642cad01
|
|
@ -8,10 +8,9 @@ import platform
|
||||||
|
|
||||||
my_os = platform.system()
|
my_os = platform.system()
|
||||||
|
|
||||||
def asignar carpeta_guardado(my_os):
|
def asignar carpeta_guardado(my_os, download_path):
|
||||||
if my_os = "Linux" or my_os = "Darwin":
|
if my_os = "Linux" or my_os = "Darwin":
|
||||||
# download_path = (/home/{USER}/Downloads/)
|
# download_path = (/home/{USER}/Downloads/)
|
||||||
if my_os = "Windows":
|
if my_os = "Windows":
|
||||||
# download_path = (/home/)
|
# download_path = (/home/)
|
||||||
return download_path
|
return download_path
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,14 @@
|
||||||
|
# Info útil para usar git
|
||||||
|
|
||||||
|
git init = initialize project to use git
|
||||||
|
git add . = add all changes to be saved
|
||||||
|
git add filename = add single file to be saved
|
||||||
|
git commit -m "message" = save changes with message
|
||||||
|
git push origin main = push changes to github master
|
||||||
|
git pull origin main = pull changes from github master
|
||||||
|
git checkout -b *new-branch* = create a new branch
|
||||||
|
git status = check status of changes
|
||||||
|
git log = see all previous saved changes
|
||||||
|
git checkout *commit hash* = travel back to old commit
|
||||||
|
|
||||||
|
Link de video que me sirvió caleta para entender como funciona git: https://youtu.be/mJ-qvsxPHpY
|
||||||
Loading…
Reference in New Issue