• If you are citizen of an European Union member nation, you may not use this service unless you are at least 16 years old.

  • You already know Dokkio is an AI-powered assistant to organize & manage your digital files & messages. Very soon, Dokkio will support Outlook as well as One Drive. Check it out today!

View
 

Git Workflow-Basic Commands

Page history last edited by Juan Pinzon 15 years, 2 months 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.