Set build number of a job: Jenkins.instance.getItemByFullName("YourJobName").updateNextBuildNumber(45)
Why Git:
- Local and distributed :
- So what?
- Local is faster : Think about it, reading from HDD/RAM is faster than reading from www.imslow.com each time.
- It not only saves your time on local operations like read history, diff, work offline [-who doesn’t have internet??] but also makes collaborating tools like Jenkins faster to act.
- Branch policies & Code review (GitHub, GitLap, VSTS ets): Tools made upon git have eligant feature like
- Code review: Following pull request workflow (more on this later), you can set branch policies to make sure that a code is reviewed before getting into the branch.
- Branch policies to prevent anyone directly committing into the branch like prod branch 'master' (similar to trunk)
- Lightweight:
- Git's repositories are much smaller than Subversions (for the Mozilla project, 30x smaller). ref: https://git.wiki.kernel.org/index.php/GitSvnComparison
Vim task
- write something "file1", "file2".... or
"uid1",
"uid2",
"uid3",
"uid4",
"uid5",
"uid6",
"uid7",
match anything : .* eg: regex \(.*\) matches (a, b, c, d) or (a..dlldkfjdlkjaoi) or (9788E98e7r8e((&^&*^&)
- find & replace
PaymentByCard.nameOfBrowser.equalsIgnoreCase\(("[a-z]*")\)
$1.equalsIgnoreCase(browserName)
==> "chrome".equalsIgnoreCase(browserName)
###create alias : https://stackoverflow.com/questions/20530996/aliases-in-windows-command-prompt
DOSKEY ls=dir /B
DOSKEY gc=git checkout
DOSKEY mkdir=md
-
file{begin,end} : `gg, G`
-
line{begin, end} : `0, $`
-
Undo: `u`
-
Select,copy,paste: `Vyp` (weep)
-
Select,cut,paste: `Vdp` (we dip)
-
show line number : `:set number` ; hid : `set nonumber`
- move cursor previous pos: ``
#File explorer
:set wildmenu
>>:set path+=**
>>:find <tab>
- list branches (local i.e tracking and remote):
git branch -vv
- checkout:
git checkout --track origin/abranch
- Create remote branch
//Create a new branch:
git checkout -b feature_branch_name
//Edit, add and commit your files. Push your branch to the remote repository:
git push -u origin feature_branch_name
NewerOlder