Skip to content

Instantly share code, notes, and snippets.

@Stefanacef
Last active October 5, 2021 08:43
Show Gist options
  • Save Stefanacef/a4bc6cc5989a3dff13bc8fcd3958c304 to your computer and use it in GitHub Desktop.
Save Stefanacef/a4bc6cc5989a3dff13bc8fcd3958c304 to your computer and use it in GitHub Desktop.
Basic Git commands
First time:
git config --global user.name "Stefana" -it is important to use the same username as on github
git config --global user.email "stefana@...."
Every time:
git init -Create a new local repository
git add -A , Add one or more files to staging
git commit -m, -first compit
git status -List the files you've changed and those you still need to add or commit
git remote add origin <server(link from your repo)>
git push origin master -Push
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment