# TIP: Using Git for Codename One Projects

DevFeed: [TIP: Using Git for Codename One Projects](<https://devfeed.tech/articles/tip-using-git-for-codename-one-projects-19610.md>)

Original publisher: [Read original article](<https://www.codenameone.com/blog/tip-using-git-for-codename-one-projects/>)

Author: Shai Almog

Published: 2017-07-02T00:00:00Z

Content type: tutorial

Language: en

Sources: [CodeName One](<https://devfeed.tech/sources/codename-one.md>)

Topics: [Git](<https://devfeed.tech/topics/git.md>)

Tags: [binaries](<https://devfeed.tech/tags/binaries.md>), [course](<https://devfeed.tech/tags/course.md>), [files](<https://devfeed.tech/tags/files.md>), [git](<https://devfeed.tech/tags/git.md>), [github](<https://devfeed.tech/tags/github.md>), [scope](<https://devfeed.tech/tags/scope.md>), [zip](<https://devfeed.tech/tags/zip.md>)

## AI overview

This article discusses using Git for Codename One projects, focusing on repository migration, designing appropriate .gitignore files, handling binary cn1lib files, and preserving resource files in version history.

## Source excerpt

I wrote in the past about importing a Codename One demo from github but I left the whole working with git as an open subject. Mostly because I considered it a bit out of scope for the discussion. I have a section in the free online course about the anatomy of a Codename One application which I completely forgot to upload until I wrote this! If you want to understand more, I strongly suggest watching that as it explains a lot of the "why" and "how" logic of Codename One project structures. It explains the purpose of every file you see in the project...