diff --git a/Sistema/sistema_operativo.py b/Sistema/sistema_operativo.py index cee5e88..dc653c4 100644 --- a/Sistema/sistema_operativo.py +++ b/Sistema/sistema_operativo.py @@ -8,10 +8,9 @@ import platform 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": # download_path = (/home/{USER}/Downloads/) if my_os = "Windows": # download_path = (/home/) return download_path - diff --git a/git_cheatsheet.md b/git_cheatsheet.md new file mode 100644 index 0000000..dc6df32 --- /dev/null +++ b/git_cheatsheet.md @@ -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 \ No newline at end of file