View
 

Git Workflow-Basic Commands

Page history last edited by Juan Pinzon 1 yr ago

To commit changes to sproutcore this are the most common commands you would use.

 

Create a branch

git checkout -b branchName

Add Files to include in your commit

git add filename

 

Get all branches  in your local repository. It will highlight the one you are currently working with

git branch

 

Commit to you local repository ( use -a to commit all modified files)

git commit -a -m "type all details about this commit"

 

Push branch to github

git push origin branchName

 

Switch to master repository

git checkout master

 

Update source

git pull

 

Merge external branch into master (if you are in the master branch and want to merge another branch)

git merge branchName

 

Push the changes in master to github

git push

 

Delete a branch in github... sending a null

git push origin :branchName 

 

Do a diff on a specific file

git diff filename

 

 

 

The following is the link to a git tutorial

Comments (0)

You don't have permission to comment on this page.