# Undo add and instead dev my local package

**URL:** <https://discourse.julialang.org/t/undo-add-and-instead-dev-my-local-package/31510>\
**Category:** General Usage\
**Created:** [November 25, 2019, 10:28pm UTC](https://discourse.julialang.org/t/undo-add-and-instead-dev-my-local-package/31510 "2019-11-25T22:28:32Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![doomphoenix-qxz](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/doomphoenix-qxz/32/7009_2.png) [@doomphoenix-qxz](https://discourse.julialang.org/u/doomphoenix-qxz)\
**Post date:** [November 25, 2019, 10:28pm UTC](https://discourse.julialang.org/t/undo-add-and-instead-dev-my-local-package/31510/1 "2019-11-25T22:28:32Z")

</div>

I created a package using `PkgTemplates`. I put it in `.julia/dev` and then added it to my primary environment for development purposes.

Now when I change and git commit the files, it’s still pulling old commits that aren’t working. I think this is because I typed `]add ~/.julia/dev/MyNewPackage` when I meant to type `]dev ~/.julia/dev/MyNewPackage`. How can I reverse this, preferably without deleting any files?

---

<div class="post-metadata">

**Author:** ![heliosdrm](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/heliosdrm/32/3851_2.png) [@heliosdrm](https://discourse.julialang.org/u/heliosdrm)\
**Post date:** [November 25, 2019, 11:27pm UTC](https://discourse.julialang.org/t/undo-add-and-instead-dev-my-local-package/31510/2 "2019-11-25T23:27:50Z")

</div>

When you say that “it’s still pulling old commits that aren’t working”, do you mean that Julia does not use the latest changes you make on your code?

If that’s the problem, it should be solved by just typing `]dev ~./julia/dev/MyNewPackage`, as you already suggested. Having `add`-ed it before shouldn’t matter.

… Unless what happens is that the files that you are editing are not the ones in the folder you referred to with `dev`. When you `add` or `update` a package, a copy of the code is also put in `.julia/packages`. But those copies are not git repositories, so I don’t think that the problem is there. In any case, check that the repo you edit is the one you referred when you type `dev` etc.

Just in case, also use [Revise.jl](https://github.com/timholy/Revise.jl) if you want to see the effect of code changes without restarting Julia.

---

<div class="post-metadata">

**Author:** ![xiaodai](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/xiaodai/32/15937_2.png) [@xiaodai](https://discourse.julialang.org/u/xiaodai)\
**Post date:** [November 26, 2019, 3:51am UTC](https://discourse.julialang.org/t/undo-add-and-instead-dev-my-local-package/31510/3 "2019-11-26T03:51:37Z")

</div>

Just do the `] dev...` again. If u update code on another computer then go to the folder in bash or git bash on Windows and do a `git pull`

---

<div class="post-metadata">

**Author:** ![doomphoenix-qxz](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/doomphoenix-qxz/32/7009_2.png) [@doomphoenix-qxz](https://discourse.julialang.org/u/doomphoenix-qxz)\
**Post date:** [November 26, 2019, 3:14pm UTC](https://discourse.julialang.org/t/undo-add-and-instead-dev-my-local-package/31510/4 "2019-11-26T15:14:16Z")

</div>

The solution was almost what you both described, but I actually had to type `]develop ~./julia/dev/MyNewPackage` instead of `]dev`. `]dev` didn’t seem to want to work with local paths on my machine for reasons that are unclear to me. Perhaps one of the Pkg devs can explain what is going on here?
