Difference between revisions of "Git"

From BlackBox Framework Wiki
Jump to navigation Jump to search
Line 8: Line 8:
[[File:Setup.png]]
[[File:Setup.png]]


1. To make some new project
 
1.1. Go to folder run pop-up menu and choose Init Here.
1. To make some new project and work with it locally
 
1.1. Move folder with a project to some place, that does not require administrator rights for creation of new folders and files (for example, home directory or desktop)
 
1.1. Go to folder run pop-up menu at some empty space and choose Init Here.


[[File:1init.png]]
[[File:1init.png]]
The hidden folder ".git" will be created, it will contain all data about repository (do not remove this folder)


1.2. For adding all files from folder to project run pop-up menu and choose "Git Add all files now".
1.2. For adding all files from folder to project run pop-up menu and choose "Git Add all files now".
Line 17: Line 23:
[[File:2addallfiles.png]]
[[File:2addallfiles.png]]


1.3. For fixation of project state use "Git Commit Tool", write some comment message and push "Commit" button
1.3. For fixation of project state use "Git Commit Tool". (If all files in red-titled area, push "Rescan" and they will move to green-titled area). Write some comment message and push "Commit" button.


[[File:3commit.png]]
[[File:3commit.png]]


1. To work with existing project
1.4 Now you can change some code, and commit new changes.
 
[[File:Stagechangedtocommit.png]]
 
1.5 Finally you will have the project history ("Git History" in pop-up menu) with the ability to restore any project state.
 
 
2. To work with existing project

Revision as of 05:36, 30 June 2014

This page contain the instructions how to use Git for working with open BlackBox Component Builder repository.

1. Download and install Git client with default preferences. http://git-scm.com/download/win

2. Add your name and email in Edit/Options...

Setup.png


1. To make some new project and work with it locally

1.1. Move folder with a project to some place, that does not require administrator rights for creation of new folders and files (for example, home directory or desktop)

1.1. Go to folder run pop-up menu at some empty space and choose Init Here.

1init.png

The hidden folder ".git" will be created, it will contain all data about repository (do not remove this folder)

1.2. For adding all files from folder to project run pop-up menu and choose "Git Add all files now".

2addallfiles.png

1.3. For fixation of project state use "Git Commit Tool". (If all files in red-titled area, push "Rescan" and they will move to green-titled area). Write some comment message and push "Commit" button.

3commit.png

1.4 Now you can change some code, and commit new changes.

Stagechangedtocommit.png

1.5 Finally you will have the project history ("Git History" in pop-up menu) with the ability to restore any project state.


2. To work with existing project