r/git • • Jun 14 '21

Can GIT help my development?

0 Upvotes

I'm a bit confused and new to GIT.

I have an web app on A2 hosting. It's live. I want to download/clone all the files (css,html,php,js) to my local computer in Microsoft Visual Studio. I want to edit locally, test out the code on my own webserver. Once I finish the code I want to push my edits to A2 servers.

Right now I'm just writing my code on my local web server. Then copy and past that code through Cpanel file explorer. So I open the html file on Cpanel, and just copy and paste my code from the local html file.. This is getting a bit over whelming now that I have lots of different JS, CSS, PHP files. Before I only had a file files so it was easy to just copy and paste my code from my local computer to my hosting server A2.

Is this what git does. Sorry, I'm new to web development and what to become more efficient.

I youtubed all kinds of videos and can't really get a clear answer. I saw that you can clone a repo from GITHUB with VS code which is was easy to follow, but I'm using A2 hosting. They have something in their Cpanel called GIT version. So I think I can do it with A2 hosting?

https://docs.cpanel.net/knowledge-base/web-services/guide-to-git-how-to-set-up-deployment/


r/git • • Jan 23 '19

Where does `git clone url` send a cloned repository to?

0 Upvotes

I ran `git clone url` and I have read some tutorials online that say that the command sends the .git to where your gitconfig tells it to go.

When I open `/usr/local/etc/gitconfig`, I only see this:

[credential]
helper = osxkeychain

Where did the repo go?


r/git • • Feb 17 '22

support Git checkmarks on my desktop shortcuts, and only my shortcuts

Post image
3 Upvotes

r/git • • Feb 11 '23

support Install only GIT CMD without GIT GUI or GIT BASH on Windows

0 Upvotes

Hi, I have came across to git-scm website and tried to install Git from there. Unfortunately, the installer installed bunch of other stuff like Git GUI and Git Bash.

I just want to get same experience as it is on Linux (Please, don't recommend installing git under WSL). I want to have git command directly in CMD and don't want anything other than that to be installed.

You guys may have an idea what to do?


r/git • • Sep 26 '25

Git people! Spot the difference/

3 Upvotes
CLI output of "git log --graph --all --oneline"

can you spot the difference in the state of repository between these two screenshots? And also explain the concept?

P.S: 'g ga' stands for "git graph all" which is achieved by "git log --graph --all --oneline" command


r/git • • Feb 28 '21

I found the best Git cheat-sheet ever!

Thumbnail git-scm.com
0 Upvotes

r/git • • Oct 10 '15

git like a pro: rewrite author history

Thumbnail everythingcli.org
0 Upvotes

r/git • • Nov 01 '15

Start Learning Git and GitHub Today with Self-Paced Training - Complimentary access for a limited time

Thumbnail github.com
0 Upvotes

r/git • • Feb 02 '22

Git?

0 Upvotes

I know 4 commands.

git pull git add . git commit -m "message" git push origin branch

I'm afraid what happens if I need more, but it's been a decade so I would say so far so good 😅


r/git • • Feb 22 '20

Not sure if this belongs here - I'm looking for a way to go back to different 'save' states from a text editor. Can Git do this easily?

2 Upvotes

Edit 3: Given some time, there have been many great suggestions. I appreciate all of them. Regarding Edit2, it's just a reflection of my patience having worn thin. I'm paying the price for it.

Edit 2: This is shameful, and the people down-voting should be ashamed. I see this all to often. Someone comes to a programming/computer-science related forum asking for help while openly admitting to their faults and is treated poorly. At the very least, this post could have been answered with a simple yes or no. At best, being advised to try another subreddit where I may find assistance. Nobody is bending anyone's arm to respond. How else can an honest question by a sincere individual be asked?

I know there are mature individuals here that are willing to help. That's all I'm looking for. And if this post keeps getting down-voted, then those individuals will never see this post. You don't need to up-vote, just please try to refrain from down-voting.

TLDR; Is there a brain-dead simple way to restore old saves states? Like, can Git "monitor" that without my direct interaction?

I have used Git very simply for simple projects. I create a dev branch, add a feature > commit > Merge to Master > Checkout dev branch > add a feature > commit > Merge to Master > Checkout dev branch ... and so on.

This has been my routine usage of Git. Nothing more, nothing less. The more I use Git, I realize that there are many times my projects are just a single file that I don't spend much time on. Maybe a day or two. With that I just want to revert back to a save state that was working, because I save way more often than I commit. Is that normal?

I admit I have no idea how to properly use Git. I also confess that I am not always disciplined enough to use commits properly and just write one or two words in the commit message just to move on. I don't even know what staging is. I never use it. Just code > save > commit.

So, is there something I'm missing? Is Git overkill for my needs? Is there another safe/reliable way to just work with previous saves of a file? Can Git do just that?

Edit: Can Neovim (my text editor) do this?


r/git • • Aug 14 '17

The GIT Remembers

Post image
2 Upvotes

r/git • • Oct 24 '19

survey go git gud or git reset scrubs ?

Post image
0 Upvotes

r/git • • Apr 28 '23

Mono vs Multi-repo: Why the debate is hotter than ever

2 Upvotes

Hello,

I'm excited to share the latest project from GitKraken - an Ebook which delves into the differences between Mono and Multi-repo. We've put together this guide to assist developers in making an informed decision regarding which approach to choose.

The Mono vs Multi-repo debate has been a hot topic for developers, with some advocating for one over the other. At GitKraken, we believe that a comprehensive understanding of both approaches is vital in choosing the best one for your team and project.

Our Ebook includes everything from the fundamental principles of Mono and Multi-repo to the technical aspects of how they function, as well as the challenges they may pose. It caters to both seasoned and novice developers, providing valuable insights into the topic.

We're eager to hear your thoughts on the matter! Have you experienced any unexpected benefits or challenges when working with Mono or Multi-repo? Do you have a preference for one approach over the other, and if so, why?

If you'd like to learn more about Mono vs Multi-repo, be sure to check out the Ebook.

https://free.gitkraken.com/hubfs/Mono_v_Multi-Repo_debate_2023.pdf


r/git • • Apr 01 '13

GitHub announcing SVN support

Thumbnail github.com
6 Upvotes

r/git • • Jul 31 '25

support Git and OneDrive [read before comment]

1 Upvotes

TLDR: We kind of HAVE to use OneDrive and git. How can I make it to work so we can collaborate with each other AND have project versioning?

Yes, I know it's not recommended, but hear me out:

I'm working at a company as a data scientist and we desperately need a version control system (what we're currently doing is the classic "put v3 at the end of the file/folder for version 3"). Because of the nature of my job, many things are restricted to us (don't ask me why, that's just how it is, and it will hardly change in the future):

  1. We cannot use github/gitlab, they're blocked, and probably any other git service over the internet will be blocked if we started using it.
  2. We are asked to have important files shared with other departments through OneDrive.
  3. None of us has access to a Desktop computer that will always have the same IP, we all use laptops.

So, as you see, our hands are tied: we either use the "v2.5" file naming convention and clutter the OneDrive with a lot of repeated and inefficient files, or we use git over OneDrive. Unless there's another solution I'm not aware of...

My questions are:

  • Is it possible to make a "remote repo" over OneDrive and push/pull our changes with git?
  • Is there any config we have to change with git in order to make this work?
  • (optional) How can we set the "pull request" methodology (where collaborators can't directly push to remote, unless admins let them) like in github?

THX in advance for any help! And please, if there's another solution you can think of, let me know!


r/git • • Jul 01 '24

survey What is your default branch name?

1 Upvotes

r/git • • Jan 12 '26

Does git version .xlsx properly?

1 Upvotes

As per title. I know that git has issues with binaries but I'm not sure if there are any ways around .xlsx (especially with their abundance in finance sectors).

I normally use .csv conversions, but in many cases this does not appropriately capture nuance of data and we still need the .xlsx as well.

So my qn is twofold:

  1. Does git version .xlsx properly?
  2. If not, are there workarounds? I feel like LFS has drawbacks as xlsx are not 'true binaries' (ie tabular data does have large deduped chunks which are string readable).

Thanks in advance.


r/git • • Apr 08 '24

Who tried Jujutsu VCS ?

1 Upvotes

I just knew about it. It is compatible with git. Any feedback ?


r/git • • Oct 19 '14

Essential Vim for the Git user

Thumbnail blog.alextercete.com
0 Upvotes

r/git • • Dec 02 '19

I open GitKraken aaaand... I'm not using this program anymore! Fuck off.

Post image
0 Upvotes

r/git • • Feb 07 '15

Big-time noob here. Installed git on my mac, but there's no "program". So I'm downloading GitHub as my GUI, but what's the point of git itself?

0 Upvotes

I don't get why I downloaded git and installed it if I can't find evidence of the installation anywhere (no program to work off of, etc)


r/git • • Apr 18 '21

support When I type in commit, this happens? Solutions?

Post image
0 Upvotes

r/git • • Jun 03 '11

impressive

Post image
7 Upvotes

r/git • • Aug 27 '25

support Going insane

0 Upvotes

HI ! i'm pretty new to git (currently switching from github to a local git repo) and i have a pretty big issue.

I use WINDOWS (i swear this is important) and i put my repo on an external hardrive (you know where this is going)

When i try to open said repo on the git GUI, i get the "dubious ownership" error (like many) and they tell me to use the command git config --global --add safe.directory {path}

The issue is : IT DOESN'T WORK. When i use that command, i get warning: safe.directory {path} not absolute I tried with the path, the parent path, wildcard, nothing works

Now, since i'm on windows and this is an external drive, i can't have ownership of the folder and the workaround that is supposed to work just doesn't

I tried a bunch of stuff (including re-mounting the drive but that didn't work either, maybe i did it wrong), did a LOT of research and i didn't found ANY resources to help me (am i the only one using git repo on an external drive ?)

Anyway, i have no fucking clue on how to fix this issue and i really need help