git basics - mmedrano9438/peripheral-brain GitHub Wiki

Step 0: Install git and create a GitHub account Step 1: Create a local git repository (from terminal) Step 2: Add a new file to the repo (touch Step 3: Add a file to the staging environment (git add command) Step 4: Create a commit (git commit -m "Your message about the commit") Step 5: Create a new branch ([git checkout -b ) Step 6: Create a new repository on GitHub...If you only want to keep track of your code locally, you don't need to use GitHub. But if you want to work with a team, you can use GitHub to collaboratively modify the project's code. Click New Repository option under "+" sign next to profile pic, click 'push an existing repository from the command line' Screen Shot 2024-01-16 at 10 08 29 AM Step 7: Push a branch to GitHub (git push origin )...origin is an abbreviation for remote repository's URL, can either the command: git push [email protected]:git/git.git or git push origin Step 8: Create a pull request (PR) A pull request (or PR) is a way to alert a repo's owners that you want to make some changes to their code. It allows them to review the code and make sure it looks good before putting your changes on the primary branch.

⚠️ **GitHub.com Fallback** ⚠️