Search This Blog

Tuesday, August 18, 2015

Git Summary using Bitbucket and Soruce Tree

Git initialization: 
 
mkdir /path/to/your/project
cd /path/to/your/project
git initgit remote 
add origin https://tintinburi@bitbucket.org/deveoteam/testtestproject.git
 
Create your first file, commit, and push

echo "tintin buri" >> contributors.txtgit 
add contributors.txtgit 
commit -m 'Initial commit with contributors'
git push -u origin master 


Already have a Git repository on your computer? Let's push it up to Bitbucket.
                  
cd /path/to/my/repogit remote 
add origin https://tintinburi@bitbucket.org/deveoteam/testtestproject.gitgit 
push -u origin --all # pushes up the repo and its refs for the first timegit 
push -u origin --tags # pushes up any tags
 
Git installation notes:
https://confluence.atlassian.com/display/BITBUCKET/Set+up+Git 
 
First save your information to git

git config --global user.name "Emma Paris"
git config --global user.email "eparis@atlassian.com" 

 
Tutorials 
https://confluence.atlassian.com/display/BITBUCKET/SourceTree+Tutorial%3A+Request+supplies+for+your+space+station

Bitbucket Tutorials: Teams in Space Training Ground


Learn Git
Learn Mercurial
Learn SourceTree
Equip yourself with pull requests

 

No comments:

Post a Comment