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

Git Basic Workflow With Github: Setup The Project Folder

This document provides an overview of basic Git workflow with GitHub, including setting up a project folder and Git configuration, cloning a repository from GitHub, making a commit of local changes with Git, and publishing the changes to GitHub with Git push. The document lists commands for each step of the workflow as an example for getting started with Git and GitHub.

Uploaded by

Subasri Sridhar
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
17 views

Git Basic Workflow With Github: Setup The Project Folder

This document provides an overview of basic Git workflow with GitHub, including setting up a project folder and Git configuration, cloning a repository from GitHub, making a commit of local changes with Git, and publishing the changes to GitHub with Git push. The document lists commands for each step of the workflow as an example for getting started with Git and GitHub.

Uploaded by

Subasri Sridhar
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, 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 version
git config --global user.name "Abe Lincoln"
git config --global user.email "[email protected]"
git 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