- git init -> starts tracking your folder with git
- git status -> checks what files have been changed
- git add filename -> stage the changes
- git commit --message "a meaningful message"
- git commit -m "a meaningful message" -> create a "savepoint"
- git push origin master -> pushes the changes (commits) to github
- git diff filename -> checks the difference from the last commit
- git log
- git lg -> see the history of commits
- git remote -v -> shows all the connections to remote repositories
- gh repo create -> create a github repository from the terminal
Created
July 15, 2024 18:43
-
-
Save dedemenezes/c3e27524216a8baa8feab25cf0ad8a0e to your computer and use it in GitHub Desktop.
- pwd -> present working directory (where am I?)
- ls / ll -> show list of everything inside a folder
- cd folder_name -> move to the folder
- cd .. -> moves back to parent folder
- mkdir new_folder_name -> creates a new folder
- touch new_filename -> makes a new file
- rm filename -> removes a file
- rm -rf folder_name -> removes a folder and everything inside of it
- mv filename folder_name -> moves the file into the specified folder
- mv filename new_filename -> renames a file
- code . -> opens current directory in vs code
- open . (mac) -> open folder in the finder
- explorer.exe . (windows) -> open folder in the file explorer
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment