0% found this document useful (0 votes)
71 views

Git4 PDF

This document outlines 12 steps for using the version control system Git including initializing a local Git repository, tracking file status and staging changes, committing changes locally with commit messages, connecting the local repository to a new remote repository on GitHub, pushing local commits to the remote repository, and creating and switching to a new branch for development.

Uploaded by

ashkuchiya
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
71 views

Git4 PDF

This document outlines 12 steps for using the version control system Git including initializing a local Git repository, tracking file status and staging changes, committing changes locally with commit messages, connecting the local repository to a new remote repository on GitHub, pushing local commits to the remote repository, and creating and switching to a new branch for development.

Uploaded by

ashkuchiya
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

Git (Revision) in 12 simple steps

Step 1 - Initiate git –

git init

Step 2 - knowing status –

git status

Step 3 – adding all the new files – (adding dot after space in necessary)

git add .

Step 4 - committing –

git commit -m "message- here what I did this time"

Step 5 -▶ Go to GitHub.com and login

create new repository

Step 6 - copy the address for repo

e.g. [email protected]:abcd123/git_alex.git

Step 7 - again @git bash

Step 8 - adding remote repo –

git remote add origin paste repo address

Step 9 - pushing local folder at github repo –

git push -u master origin

Step 10 - this creates a master(main) branch

Step 11 - Creating New branch

git branch new-branch

Step 12 – Switching from the master to the new branch

Git checkout new-branch

You might also like