Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ryan d 1 #50

Closed
wants to merge 5 commits into from
Closed

Ryan d 1 #50

wants to merge 5 commits into from

Conversation

rdunning75
Copy link
Collaborator

Did i fix what you wanted?

@PranilDahal
Copy link
Owner

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
Copy link
Collaborator Author

rdunning75 commented Sep 27, 2018 via email

@treblegni
Copy link
Collaborator

treblegni commented Sep 27, 2018 via email

@PranilDahal
Copy link
Owner

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

@treblegni
Copy link
Collaborator

treblegni commented Sep 27, 2018 via email

@PranilDahal PranilDahal closed this Oct 2, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants