# Unable to commit

**URL:** <https://discourse.slicer.org/t/unable-to-commit/24365>\
**Category:** Development\
**Created:** [July 18, 2022, 12:23pm UTC](https://discourse.slicer.org/t/unable-to-commit/24365 "2022-07-18T12:23:08Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![keri](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/keri/32/11618_2.png) [@keri](https://discourse.slicer.org/u/keri)\
**Post date:** [July 18, 2022, 12:23pm UTC](https://discourse.slicer.org/t/unable-to-commit/24365/1 "2022-07-18T12:23:08Z")

</div>

Hi,

when executing `git commit` I get error:

```auto
Your work tree has not been configured for Slicer development.
Paste the following commands into a shell:

  ./Utilities/SetupForDevelopment.sh

See
http://www.slicer.org/slicerWiki/index.php/Documentation/Nightly/Developers/DevelopmentWithGit
 for more information.

```

When I past the command directly to the powershell `./Utilities/SetupForDevelopment.sh` it simply opens it in text editor.

To execute I change its eextension to `ps1` and then I get error:

```auto
PS C:\S> ./Utilities/SetupForDevelopment.ps1
At C:\S\Utilities\SetupForDevelopment.ps1:8 char:19
+ printErrorAndExit() {
+ ~
An expression was expected after '('.
At C:\S\Utilities\SetupForDevelopment.ps1:9 char:47
+ echo 'Failure during git development setup' 1>&2
+ ~~~~
The '1>&2' operator is reserved for future use.
At C:\S\Utilities\SetupForDevelopment.ps1:10 char:47
+ echo '------------------------------------' 1>&2
+ ~~~~
The '1>&2' operator is reserved for future use.
At C:\S\Utilities\SetupForDevelopment.ps1:11 char:11
+ echo '' 1>&2
+ ~~~~
The '1>&2' operator is reserved for future use.
At C:\S\Utilities\SetupForDevelopment.ps1:12 char:13
+ echo "$@" 1>&2
+ ~~~~
The '1>&2' operator is reserved for future use.
At C:\S\Utilities\SetupForDevelopment.ps1:19 char:3
+ if test -d .git/.git; then
+ ~
Missing '(' after 'if' in if statement.
At C:\S\Utilities\SetupForDevelopment.ps1:36 char:16
+ ./SetupUser.sh || exit 1
+ ~~
The token '||' is not a valid statement separator in this version.
At C:\S\Utilities\SetupForDevelopment.ps1:40 char:17
+ ./SetupHooks.sh || exit 1
+ ~~
The token '||' is not a valid statement separator in this version.
At C:\S\Utilities\SetupForDevelopment.ps1:44 char:14
+ ./GitTips.sh || exit 1
+ ~~
The token '||' is not a valid statement separator in this version.
    + CategoryInfo : ParserError: (:) [], ParseException
    + FullyQualifiedErrorId : ExpectedExpression

```

Can’t understand what happened.

---

<div class="post-metadata">

**Author:** ![keri](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/keri/32/11618_2.png) [@keri](https://discourse.slicer.org/u/keri)\
**Post date:** [July 18, 2022, 12:45pm UTC](https://discourse.slicer.org/t/unable-to-commit/24365/2 "2022-07-18T12:45:56Z")

</div>

I just figured out that I needed to run it within `GIT Bash`
