For a new Java Project inside this folder, change to branch and check the branch ejercicios-java/README.md
i.e:
HomeWork (git-project: https://github.com/fritzmatias/HomeWork.git)
\\_ folder1
···\\_ proj1 (remoteBranchName: folder1-proj1)
···\\_ proj2 (remoteBranchName: folder1-proj2)
\\_ folder2
···\\_ folder1
......\\_ proj1 (remoteBranchName: folder2-folder1-proj1)
...\\_ proj2 (remoteBranchName: folder2-proj2)
\\_ folder3
- git clone --single-branch -b ${remoteBranchName} ${projectPath} ${remoteBranchName}-${newProjectName}
i.e.:
remoteBranchName=ejercicios-java;
projectPath=https://github.com/fritzmatias/ejercicios.git;
newProjectName=DocumentReader;
git clone --single-branch -b ${remoteBranchName} ${projectPath} ${remoteBranchName}-${newProjectName}
- git push --set-upstream origin ${remoteBranchName}-${newProjectName}
i.e.:
remoteBranchName=ejercicios-java-DocumentReader;
projectPath=https://github.com/fritzmatias/HomeWork.git;
newProjectName=DocumentReader;
git push --set-upstream origin ${remoteBranchName}-${newProjectName}
- git clone --single-branch -b ${remoteBranchName} ${projectPath} ${remoteBranchName}-clone
i.e.:
remoteBranchName=ejercicios-java-DocumentReader;
projectPath=https://github.com/fritzmatias/HomeWork.git;
git clone --single-branch -b ${remoteBranchName} ${projectPath} ${remoteBranchName}-clone
- (after actions for reading)
- cd ${remoteBranchName}-clone
- git branch --track ${remoteBranchName}-fix
- git checkout ${remoteBranchName}-fix
- .... (modify)
- git commit -a -m ''
- git push --set-upstream origin ${remoteBranchName}-fix
- (into the ProjectPath)
- git checkout ${remoteBranchName}
- git tag ${remoteBranchName}-preMerge
- git merge ${remoteBranchName}-fix
- git branch -d ${remoteBranchName}-fix