329 Lotus blogs updated hourly. Who will post next? Home | Downloads | Events | Jobs | Twitter | Bookmarks | Pods | Blogs | Search | myPL | About 
 
Latest 7 Posts
Domino Designer and .git folder mystery
Wed, May 1st 2013 116
BLUG 2013
Mon, Mar 25th 2013 157
Call doc.closeMIMEEntities after touching doc.getMIMEEntity
Tue, Jan 22nd 2013 281
Dynamic binding of fields bug?
Mon, Jan 21st 2013 286
Wanna use Git (with DDE) and you're afraid of command line? Try GitHub for Windows
Fri, Jul 6th 2012 287
Using Git with Domino Designer - the hardcore way, part II.
Thu, Jun 7th 2012 244
Using Git with Domino Designer - the hardcore way
Mon, Apr 23rd 2012 410
Top 10
Unable to initialize Computer, and it can't be used at this time...
Fri, Oct 14th 2011 419
Using Git with Domino Designer - the hardcore way
Mon, Apr 23rd 2012 410
Another 8.5.3 hidden gem - SOAP Header for Web Services in Lotus Domino
Fri, Aug 12th 2011 293
A right tool for bug tracking/project management - Redmine
Sat, Jul 30th 2011 290
Wanna use Git (with DDE) and you're afraid of command line? Try GitHub for Windows
Fri, Jul 6th 2012 287
Dynamic binding of fields bug?
Mon, Jan 21st 2013 286
Call doc.closeMIMEEntities after touching doc.getMIMEEntity
Tue, Jan 22nd 2013 281
Using MongoDB instead of Domino?
Fri, Nov 18th 2011 253
Using Git with Domino Designer - the hardcore way, part II.
Thu, Jun 7th 2012 244
BLUG 2012: part 2
Sat, Apr 7th 2012 238


Using Git with Domino Designer - the hardcore way
martin jinoch    

This is a first part of posts on version control with Git for Notes developers. I'm writing it as an addendum to my BLUG 2012 session "Version control for Notes developers".

Version control for Domino Designer projects - using command line Git (aka the HARDCORE way)

Designer 8.5.3 has built-in capability to link NSF/NTF files with so called on-disk projects that can be used by version control systems. That alone is not enough to successfully use version control systems directly from Designer. But it is enough to use them from the command line! From now on I'm assuming that you've created on-disk project out of one of your NSF/NTF files and this on-disk project is called "git_test".

1. Install Git for Windows

You can download Git for Windows here. Simply run downloaded file and leave all settings in default values. Of course you can adjust these settings if you know what you're doing :) This should add Git Bash icon to your desktop. Double click it to open the Bash prompt.

2. Start using it

On-disk project is just folder with files and sub-folders within your workspace folder. Start Git Bash, go to workspace folder under your Notes/data (i.e. cd "C:Program Filesibmlotusnotesdataworkspace"), locate the folder with the name of the on disk project (in our case type cd git_test) and type git init, followed by git add -A and git commit -a -m 'initial import'". After execution of these commands your on-disk project is "saved" to the Git repository located in ".git" subfolder.
git init creates empty repository,
git add -A adds all the files in current folder (and all subfolders) to git's index and
git commit -a actually saves current state of all those files to the repository (Git tracks changes only in files that has been added to its index).
After you make some changes to original NTF/NSF, switch back to command line prompt and simply type git add -A followed by git commit -a -m "here put your comment". If you omit -m parameter, Git will open text editor for you to enter your comment there.
Every time you create a new design element you have to add it to Git's index by typing git add name_of_file.
More advanced usage is to select what changed files are going to be commited, not commiting them all. This is convenient in case you've made some changes to several design elements but you want to have those changes saved as two separate steps (commits). For example if you've fixed two bugs or added two new features (or more, of course).
Instead of git commit -a you can use git commit name_of_file1 name_of_file2 ... -m "here put your commit description"

To find out what files has been modified and/or added you can use command git status

In the next part I'll show you how to install and use git-flow and how to tweak your command prompt to show you some valuable information about the state of your on-disk project's repository.
Stay tuned...

Tags: 



---------------------
http://jinoch.cz/using-git-domino-designer-hardcore-way
Mar 10, 2012
411 hits



Recent Blog Posts
116


Domino Designer and .git folder mystery
Wed, May 1st 2013 8:36a   Martin Jinoch
Twitter conversation about version control has brought me to the debate about .git folder appearing in NSF file and how to avoid having it there. I remember seeing one NSF file with .git folder in it a while ago and I've deleted it from NSF without any consequences. NSF is still fine, git repository it is connected to as well. But Cameron Gregor (and probably Sean Cull too) had different experience. Cameron was kind enough to "record" how this happens on his computer. When I was reproducing [read] Keywords: domino openntf twitter
157


BLUG 2013
Mon, Mar 25th 2013 2:12p   Martin Jinoch
I am writing this at Brussels airport on Sunday afternoon waiting for evening flight back to Prague. Since Wednesday when we came to Leuven to attend BLUG 2013, weather got really bad and although we have March 24 whole Brussels (and Antwerpen and I am sure more other places) are covered by snow and it is freezing out there. Yet even this really unpleasant ending could not spoil great feeling I have about this year's BLUG. In fact all previous BLUGs as well. This was my third. First one in 2011 [read] Keywords: domino ibm lotus notes xpages community development podcast twitter
281


Call doc.closeMIMEEntities after touching doc.getMIMEEntity
Tue, Jan 22nd 2013 6:14a   Martin Jinoch
Another stupid mistake has taken a lot of my time last week. I developed a small library to provide function(s) to move attachments from rich text fields to separate db (nsf or some other). This function was supposed to be part of bigger process, so saving of document being processed was meant to happen in other code. That is why I had not tested what doc.save() would do. My tests were just checking destination db for created records containing moved files. Other part of process was developed by [read] Keywords: domino ibm rich text xpages bug development java server
286


Dynamic binding of fields bug?
Mon, Jan 21st 2013 3:32a   Martin Jinoch
I was developing very simple XPages component recently and because it was basically loop through a list of field names (and the task was to show something for each of them) I have used repeat control and inside of it there was custom control with properties such as fieldName (String), label (String), isRequired (boolean) and so on. In the custom control I was binding fileDownload and fileUpload controls (based on read/edit mode) to document field via EL as "document1[compositeData.fieldName]" [read] Keywords: notes xpages bug properties
287


Wanna use Git (with DDE) and you're afraid of command line? Try GitHub for Windows
Fri, Jul 6th 2012 6:14a   Martin Jinoch
Last two blog posts were about using Git and git-flow with DDE. I use command line as main working interface when interacting with Git repositories. I am used to it, I am more productive this way. But If you're not used to use CLI, there is GitHub for Windows available for you. Go try it! And if Git doesn't sound familiar to you, try it in your browser, without the need to install anything. Tags: git version control [read] Keywords: interface
244


Using Git with Domino Designer - the hardcore way, part II.
Thu, Jun 7th 2012 1:24p   Martin Jinoch
Today's talk about setting up a development workflow for a new project reminded me of my promise to write the second part of this blog post. So here we go: Installing Gitflow Just read and follow the instructions in gitflow wiki. You may also want to setup very handy command completion, instructions are here. Start using it In the folder with your on-disk project (in our case it is C:Program Filesibmlotusnotesdataworkspacegit_test) simply run the command git flow init and answer the questions ( [read] Keywords: domino ibm lotus notes ntf development exchange exchange wiki workspace




411


Using Git with Domino Designer - the hardcore way
Mon, Apr 23rd 2012 11:01a   Martin Jinoch
This is a first part of posts on version control with Git for Notes developers. I'm writing it as an addendum to my BLUG 2012 session "Version control for Notes developers". Version control for Domino Designer projects - using command line Git (aka the HARDCORE way) Designer 8.5.3 has built-in capability to link NSF/NTF files with so called on-disk projects that can be used by version control systems. That alone is not enough to successfully use version control systems directly from Designer. [read] Keywords: domino ibm lotus notes ntf desktop google workspace
238


BLUG 2012: part 2
Sat, Apr 7th 2012 11:12a   Martin Jinoch
Day 2: Friday Waking up in the morning is not my hobby ("good morning" is an oxymoron for me). And after all those beers (Belgian beers are usually stronger than Czech ones, but we are used to drink 0,5l as "one beer") this morning was especially hard. But we made it to the Crown Plaza Hotel just in time to attend "How XPages became mobile" with Earmon Muldoon and Paul Withers. Combination of coffee and interesting information was a nice start of a day. Speaking about the coffee: it was gr [read] Keywords: lotus notes xpages mobile server
208


BLUG 2012: part 1
Mon, Apr 2nd 2012 2:20a   Martin Jinoch
BLUG has been really good event this year. Again! Theo is a great host, doesn't matter if you're speaker or attendee, he treats you well. Extremely well. All that chocolate in a speakers room! I was full of energy and good mood until late night hours even after the whole busy day at a conference. Splendid! Day 0: Wednesday Being a speaker for the first time on LUG event and presenting in English for the first time ever was kind of difficult for me. I was very shy at the opening event on Wedne [read] Keywords: connections lotusphere lotusscript notes xpages development
200


My BLUG presentation on version control
Thu, Mar 22nd 2012 7:10a   Martin Jinoch
Here is the slide deck for my BLUG session on version control attachment: Blug_versioncontrol.pdf [read] Keywords: application




Created and Maintained by Yancy Lent - About - Blog Submission - Suggestions - Change Log - Blog Widget - Advertising - Mobile Edition