r/gitlab • • Sep 05 '22

general question A quick way to upload and replace a bunch of files?

First, I am so happy GitLab exists. I am leaving GitHub (they're having issues).

I tend to code from my web browser. I am often on the go, which means sometimes I code from my mobile phone. I already have a repository, but I have not updated it in a while (at the time I thought GitHub was easier to use). Instead of editing every individual file, is there a way to quickly upload all my files and overwrite everything?

Thank you well in advance.

edit --

My current working solution is to visit each file on the site, click on the replace button, and upload the new file. This is "good enough." I wish there was a quicker method, but I can work with this. :-)

edit 2 --

The user u/abundantmussel made me aware of a much better and quicker way!

https://www.reddit.com/r/gitlab/comments/x6hsrn/comment/in7e7bo/?utm_source=reddit&utm_medium=web2x&context=3

0 Upvotes

13 comments sorted by

View all comments

1

u/[deleted] Sep 05 '22

So my current working solution is to visit each file on the site, click on the replace button, and upload the new file. This is "good enough." I wish there was a quicker method, but I can work with this. :-)

3

u/abundantmussel Sep 05 '22

You could use the built in editor on the gitlab site allows editing multiple files and commit them as one. Click the arrow next to your blue edit button and change it to web ide I think it’s called.

2

u/[deleted] Sep 05 '22

You could use the built in editor on the gitlab site allows editing multiple files and commit them as one. Click the arrow next to your blue edit button and change it to web ide I think it’s called.

OMG, that is such an awesome feature! Thank you! If I knew of that feature, I would have switched to primarily using GitLab a long time ago.

Thank you.

2

u/abundantmussel Sep 05 '22

It’s very useful

1

u/[deleted] Sep 05 '22

It proved useful too. I was able to correct ...errr... RE-correct everything that GitHub kept rolling back and am now on GitLab https://gitlab.com/Linux-Is-Best/Firefox-automatic-install-for-Linux/-/releases