User Tools

Site Tools


git:git_resources

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
git:git_resources [2017/05/16 19:11]
igorkagan
git:git_resources [2019/02/28 09:39] (current)
igorkagan
Line 4: Line 4:
 DAG code repository: ​ https://​github.com/​dagdpz DAG code repository: ​ https://​github.com/​dagdpz
  
-Test repository ​to try things out: https://​github.com/​dagdpz/​test ​LOL+Test repositories ​to try things out LOL 
 +https://​github.com/​dagdpz/​test ​ 
 +https://​github.com/​dagdpz/​test_restricted_commits 
 + 
 +{{:​restricted_commits_master_branch_settings.png?​800|}} 
  
 Really easy GUI client for Win or Mac: https://​windows.github.com/​ Really easy GUI client for Win or Mac: https://​windows.github.com/​
 +
 +for **the even more simple and intuitive previous version of GitHub**, use Y:​\Software\GitHub\GitHubSetup.exe
  
 Intuitive and more powerful client, Win, Linux, Mac: http://​www.collab.net/​downloads/​giteye Intuitive and more powerful client, Win, Linux, Mac: http://​www.collab.net/​downloads/​giteye
 +
 +<WRAP center round important 60%>
 +To add repositories to MATLAB path, **excluding** .git, add the following in startup.m
 +</​WRAP>​
 +
 +<​code="​matlab">​addpath(genpath_exclude('​...Repos','​.git'​));​ % genpath_exclude function in Igtools/​external </​code>​
  
 ==== Basic ideas: ==== ==== Basic ideas: ====
Line 14: Line 27:
 1. Create repository: ​ 1. Create repository: ​
  
-2. For existing repository:+New >  
 + 
 +2. For an existing repository:
  
 2.1 When you are working on your own or sequentially (i.e. no concurrent edits) 2.1 When you are working on your own or sequentially (i.e. no concurrent edits)
  
-GitHub: sync, change code, commit and sync (now you should see changes online)+__GitHub__: sync, change code, commit and sync (now you should see changes online)
  
-GitEye: pull, change code, commit and push (now you should see changes online)+(OR)
  
-2.2 When editing concurrently and doing the same as in 2.1:+__GitEye__pull, change code, commit and push (now you should see changes online)
  
-Sync conflict!+2.2 When editing concurrently (by >1 person) and doing the same as in 2.1: 
 + 
 +**Sync conflict!**
 <​code>​ <​code>​
 <<<<<<<​ HEAD <<<<<<<​ HEAD
Line 33: Line 50:
 </​code>​ </​code>​
  
-Resolve conflicts!+Resolve conflicts, then commit and push/sync again 
 + 
 +2.3 Working with branches 
 + 
 +2.3.1 Create new branch 
 + 
 +2.3.2 Do same as 2.1 
 + 
 +2.3.3 Pull Request > New pull request > Create Pull Request > Merge pull request 
  
-commit and push/sync again 
  
  
git/git_resources.1494961872.txt.gz · Last modified: 2017/05/16 19:11 by igorkagan