Source control (using Git) does not commit newly created objects
Posted: Fri 11 May 2018 15:34
I've configured the source control feature to use Git.
All works well when changing or removing existing objects in the database schema.
However new objects do not get committed into the repo.
Instead they are merely created in my working folder and seen as "Untracked" objects by Git.
Is there a setting I need to make in either Git or DbForge to force newly created objects to be committed into the repo?
I've included my .gitignore file contents below, in case something in there is the cause, but I don't think that's the case:
.vs/
#ignore obfuscation cruft
Obfuscated\ assemblies/
# Ignore User-specific files
*.suo
*.user
*.userosscache
*.sln.docstates
# Ignore NuGet Packages
*.nupkg
# The packages folder can be ignored because of Package Restore
**/packages/*
# except build/, which is used as an MSBuild target.
!**/packages/build/
# Uncomment if necessary however generally it will be regenerated when needed
#!**/packages/repositories.config
# Ignore Build results
[Dd]ebug/
[Dd]ebugPublic/
[Rr]elease/
[Rr]eleases/
x64/
x86/
build/
bld/
[Bb]in/
[Oo]bj/
# Ignore NUNIT
*.VisualState.xml
TestResult.xml
# Ignore Visual Studio profiler
*.psess
*.vsp
*.vspx
# Ignore ReSharper
_ReSharper*/
*.[Rr]e[Ss]harper
*.DotSettings.user
# Ignore DotCover
*.dotCover
# TeamCity
_TeamCity*
# Ignore Others
*.[Cc]ache
ClientBin/
[Ss]tyle[Cc]op.*
~$*
*~
*.dbmdl
*.dbproj.schemaview
*.pfx
*.publishsettings
publish/
*.lock
*.ide
*.tss
# Ignore backup & report files from converting an old project file
# to a newer Visual Studio version. Backup files are not needed,
# because we have git ;-)
_UpgradeReport_Files/
Backup*/
UpgradeLog*.XML
UpgradeLog*.htm
# sass
.sass-cache/
*_i.c
*_p.c
*_i.h
*.ilk
*.meta
*.obj
*.pch
*.pdb
*.pgc
*.pgd
*.rsp
*.sbr
*.tlb
*.tli
*.tlh
*.tmp
*.tmp_proj
*.log
*.vspscc
*.vssscc
.builds
*.pidb
*.svclog
*.scc
# RedGate Source Control
*.ssc
All works well when changing or removing existing objects in the database schema.
However new objects do not get committed into the repo.
Instead they are merely created in my working folder and seen as "Untracked" objects by Git.
Is there a setting I need to make in either Git or DbForge to force newly created objects to be committed into the repo?
I've included my .gitignore file contents below, in case something in there is the cause, but I don't think that's the case:
.vs/
#ignore obfuscation cruft
Obfuscated\ assemblies/
# Ignore User-specific files
*.suo
*.user
*.userosscache
*.sln.docstates
# Ignore NuGet Packages
*.nupkg
# The packages folder can be ignored because of Package Restore
**/packages/*
# except build/, which is used as an MSBuild target.
!**/packages/build/
# Uncomment if necessary however generally it will be regenerated when needed
#!**/packages/repositories.config
# Ignore Build results
[Dd]ebug/
[Dd]ebugPublic/
[Rr]elease/
[Rr]eleases/
x64/
x86/
build/
bld/
[Bb]in/
[Oo]bj/
# Ignore NUNIT
*.VisualState.xml
TestResult.xml
# Ignore Visual Studio profiler
*.psess
*.vsp
*.vspx
# Ignore ReSharper
_ReSharper*/
*.[Rr]e[Ss]harper
*.DotSettings.user
# Ignore DotCover
*.dotCover
# TeamCity
_TeamCity*
# Ignore Others
*.[Cc]ache
ClientBin/
[Ss]tyle[Cc]op.*
~$*
*~
*.dbmdl
*.dbproj.schemaview
*.pfx
*.publishsettings
publish/
*.lock
*.ide
*.tss
# Ignore backup & report files from converting an old project file
# to a newer Visual Studio version. Backup files are not needed,
# because we have git ;-)
_UpgradeReport_Files/
Backup*/
UpgradeLog*.XML
UpgradeLog*.htm
# sass
.sass-cache/
*_i.c
*_p.c
*_i.h
*.ilk
*.meta
*.obj
*.pch
*.pdb
*.pgc
*.pgd
*.rsp
*.sbr
*.tlb
*.tli
*.tlh
*.tmp
*.tmp_proj
*.log
*.vspscc
*.vssscc
.builds
*.pidb
*.svclog
*.scc
# RedGate Source Control
*.ssc