I have some questions related to Bitbucket those are as follows
1. Window ID Integration BitBucket.
2. Revert/ Rollback whole project to last version.
3. Locking facility for a single page or folder (ie. is it possible to give the permission on file/folder wise).
Is it possible to achieve these functionality within the Bitbucket(server/cloud).
Thanks @Tim Crall for your valuable response.
As you suggest in the Answers, I will try to achieve these functionality.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I could not getting this "In which case you can do that locally with git (git reset --hard) and then do a force push to Bitbucket." point.
My second question is that .
Suppose In my master branch (file) 4 lines of code was there and one of my team member done some changes into that master branch (file) ie. suppose he has added another 4 lines of code into that file and he has committed that changes but after that we came to know is that code is faulty code now we want to revert that.
so like this can we achieve??
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes, you can do this with 'git reset' or 'git revert'. Reset is cleaner, but changes history, which will cause problems if anyone else has clones of the code with the bad commit, so that's considered the best practice when dealing with a shared branch like master.
git revert <commit_id_of_bad_commit>
will create a new commit that exactly undoes all the changes introduced by the specified commit.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
HI @Tim Crall,
Thanks for your response.
This is the Master branch. it contains one line within new.txt file. (PFA)
2016-07-20_1045.png
This is the new feature/permission branch. it contains two lines within new.txt file. (PFA)
2016-07-20_1045_001.png
As u mentioned in above comment, i wanted to revert last line from feature/permission branch of new.txt file and i tried to revert but it gives error.
2016-07-20_1045_002.png
please give some suggestions.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks @Tim Crall,
we can do that.
reset1.pngreverting(UNDO).pngreset2.png
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.