You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
The Atlassian Community can help you and your team get more value out of Atlassian products and practices.
I need to maintain a copy of a file in my local machine with different settings than the one stored in github. For example, localhost IP configs. My IP configs are only matching my own machine, it shouldn't be something that another person pulls. So, the copy in github needs to be
<code>this is for everyone</code>
and mine needs to stay
<code> this is for me alone </code>
Problem is, when I change my file, sourcetree naturally recognizes the changes and adds it to the Unstaged Files portion for commit and push. I see some options when I right click but I'm not sure which one is the right one
right-click - remove (this deletes the file from my root I think)
right-click - Discard (this reverts my changes)
right-click - Stop Tracking (this creates a gitignore with the file path. It can't be ignored. it just needs to stay unchanged but able to be pulled)
Thoughts?
I found from a different source that this can be done by opening your Git Terminal and typing the following command to tell SourceTree to assume the file has not changed
git update-index --assume-unchanged C:/$PATH/src/main/webapp/frontend/config/webpack/Base.js
If you find yourself using the command frequently, you can also add a Custom Action to do this for you:
git update-index --assume-unchanged %1
To use the custom action simply select the file in the modified file list, and then go to Actions > Custom Actions > Assume Unchanged
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello! You can do this by creating a local non-shared ignore file. This will ignore changes to that file, but only for your local machine. To do that:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you. However the file is still showing in the stage stack.
My file structure looks like this
My exclude file contains
/src/main/webapp/frontend/config/webpack/Base.js
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.