tricky git question.

2 views
Skip to first unread message

jan i

unread,
Sep 28, 2015, 6:00:08 AM9/28/15
to CorinthiaTeam
Hi.

I have a problem with my buildbot scripts.

I do "git clone" in a new directory, works fine for my scripts

But when I do "git co" it sometimes leaves files from the old branch as "unversioned".

I want to only do "git clone" once, and then switch branches and run build for each, but how do I get rid of "non-git tracked files" ?

thanks in advance for any help.
rgds
jan i.

Gabriela Gibson

unread,
Oct 1, 2015, 9:40:20 AM10/1/15
to CorinthiaTeam, ja...@apache.org

Somewhere in the forest that is git docs, I found this:

--untracked-files[=<mode>]
Show untracked files.

The mode parameter is optional (defaults to all), and is used to specify the handling of untracked files; when -u is not used, the default is normal, i.e. show untracked files and directories.

The possible options are:

no - Show no untracked files

normal - Shows untracked files and directories

all - Also shows individual files in untracked directories.

The default can be changed using the status.showUntrackedFiles configuration variable documented in git-config[1].

Maybe this will give you a list of things to exclude/delete for your script?

G

Reply all
Reply to author
Forward
0 new messages