0% found this document useful (0 votes)
54 views1 page

Git Basic Workflow With Github: Setup The Project Folder

This document provides an overview of basic Git workflow with GitHub, including setting up a local project folder, configuring Git with a user name and email, cloning a GitHub repository, making a change to a file and committing it locally, and finally publishing the commit to GitHub by pushing it to the remote origin/master branch.

Uploaded by

rajesh
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)
54 views1 page

Git Basic Workflow With Github: Setup The Project Folder

This document provides an overview of basic Git workflow with GitHub, including setting up a local project folder, configuring Git with a user name and email, cloning a GitHub repository, making a change to a file and committing it locally, and finally publishing the commit to GitHub by pushing it to the remote origin/master branch.

Uploaded by

rajesh
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 Basic Workflow with GitHub

A quick introduction to Git with an hands on example starting with GitHub, making local changes and back to GitHub again.

Setup the Project Folder


Command Listing
pwd
mkdir projects
cd projects
pwd

Git Configuration
Command Listing
git
git
git
git

version
config --global user.name "Abe Lincoln"
config --global user.email "[email protected]"
config --global --list

Copy the Repository (clone)


Command Listing
# paste in your GitHub HTTPS clone URL
git clone https://github.com/prezlincoln/github-demo.git
ls
cd github-demo
ls
git status

The First Commit


Command Listing
echo "Test Git Quick Start demo" >> start.txt
ls
cat start.txt
git status
git add start.txt
git status
git commit -m "Adding start text file"
git status

Publishing Changes to GitHub (push)


Command Listing
git push origin master

You might also like