I have committed some code in my branch. i am able to see in bitbucket portal.
after that when checked my code, my code was removed and i try to find out who done that. but none of the commit is showing the override code.
i would like to know how that is possible. is there any way to commit the code or change the code in bitbucket and will not show in commit section.
please answer.
There are few creative/destructive ways to "silently override code":
And more...
To find the changes, you can try:
My personal recommendation is #3
Hi @Erez Maadani ,
thanks for your reply could you please provide detailed command which you mentioned in point number 3.
git log -G <what is this regex> and what is the path like are you expecting like D:\....\..java something like that..?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The regex is a string pattern which describes some of your lost code.
For example, if your lost code includes the line:
console.log("my-lost-code")
in a file named: "my-lost-file" in the root directory, running the command:
git log -G "my-lost-code" my-lost-file
Will output all the commits which their diff contains lines with "my-lost-code" in the file "my-lost-file", including the commit the line was removed.
It's been a while working with windows paths, but depends on your terminal/git client, it will either be "D:\...\..java" or "/D/.../..java". You can also use the "--relative" flag to avoid using full paths. See here for more details: https://git-scm.com/docs/git-log
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I am using your command, but nothing is printing in console. will generate any log fil with the command which you given, if yes where can i get the log file. i checked everywhere but did not find.
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.