Jump to content
  • Advertisement
Sign in to follow this  
Icebone1000

git add . vs git add -A , didnt do the same thing

This topic is 663 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Im readin arround the internet they do the same thing...It didnt

 

I just moved lots of folders out of a folder. Than I did [git add .], it didnt detected renamed or modifyed, it gave me a zillion added and deleted...Than I simply runned [git add -A] and ta dah, a zillion renamed...wtf is wrong with the internet

Edited by Icebone1000

Share this post


Link to post
Share on other sites
Advertisement

Also, Git cannot reliably autodetect renames or moves of files or folders. If you want to record the move of something from one name and/or location to another, use `git mv (src) (dst)` to tell Git explicitly what you're doing. This also helps `blame`-like tools follow histories backwards past rename events.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!