PranilDahal / Eagle-Post

Eagle-Post: Social Media Software Project - ACM Cal State LA
11 stars 2 forks source link

Ryan d 1 #50

Closed rdunning75 closed 5 years ago

rdunning75 commented 5 years ago

Did i fix what you wanted?

PranilDahal commented 5 years ago

Instead of adding the files to .gitignore, you can run the following command: git update-index --assume-unchanged This will ignore all the local changes you make to the file. Any change you make on that file will be ignored.

Another thing you can do, is after doing "git add ." (the . means that ALL the changes should be staged for commit) run a "git status" to see which files are green. if you see a change that shouldn't be green (ex: the application.properties file changes), do "git checkout -- pathtofile". That will UNSTAGE the file. If you run "git status", that fill will go back to being red, and wont be pushed when you make the commit.

rdunning75 commented 5 years ago

Thanks for advice. I could also just have used git checkout — filename.whatever to ignore the changes before using git add .

On Thu, Sep 27, 2018 at 10:11 AM Pranil Dahal notifications@github.com wrote:

@PranilDahal approved this pull request.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/PranilDahal/SocialMediaApp/pull/50#pullrequestreview-159550259, or mute the thread https://github.com/notifications/unsubscribe-auth/Ad2S5Rfr1W2jHjLL2ymeQFAxlO2bC-lgks5ufQa3gaJpZM4W55MV .

treblegni commented 5 years ago

Hey, Pranil. Quick question. Since we don't want to add any changes to. gitignore (or push gitignore at all), can we just use git add *?

On Thursday, September 27, 2018, Pranil Dahal notifications@github.com wrote:

Instead of adding the files to .gitignore, you can run the following command: git update-index --assume-unchanged This will ignore all the local changes you make to the file. Any change you make on that file will be ignored.

Another thing you can do, is after doing "git add ." (the . means that ALL the changes should be staged for commit) run a "git status" to see which files are green. if you see a change that shouldn't be green (ex: the application.properties file changes), do "git checkout -- pathtofile". That will UNSTAGE the file. If you run "git status", that fill will go back to being red, and wont be pushed when you make the commit.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/PranilDahal/SocialMediaApp/pull/50#issuecomment-425170775, or mute the thread https://github.com/notifications/unsubscribe-auth/AYSlgDPSjuJmEGAq62u1mauJBIRq9S3jks5ufQaNgaJpZM4W55MV .

PranilDahal commented 5 years ago

yeah, i didnt even know about that * command lol. you can use that too!

treblegni commented 5 years ago

Oh lol. Alrighties I'll stick to that!

On Thu, Sep 27, 2018, 2:54 PM Pranil Dahal notifications@github.com wrote:

yeah, i didnt even know about that * command lol. you can use that too!

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/PranilDahal/SocialMediaApp/pull/50#issuecomment-425255465, or mute the thread https://github.com/notifications/unsubscribe-auth/AYSlgEVFRG6JR09zEgCmf1K5OY2Lb1Myks5ufUkbgaJpZM4W55MV .