14 lines
598 B
Markdown
14 lines
598 B
Markdown
# 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 |