Welcome toVigges Developer Community-Open, Learning,Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
243 views
in Technique[技术] by (71.8m points)

java - how to add changed codes in bit bucket to my android studio

I'm working with a team, They made some changes in code now I have to add that to my code. How can I do that in Bit bucket. How to add that code in my android studio


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

Goto your project home directory in git bash command prompt and execute below commands.

a). If you have a branch which is same as branch used by your team in your local then execute below command. git pull origin your_branch_name Here branch name is corresponding to branch name used by your team.

b). Otherwise execute below commands.

  1. git checkout -- . (if you don't need current changes in your local)
  2. git fetch origin
  3. git checkout -b your_branch_name origin your_branch_name

Finally execute below commands to see last commit details

  1. git diff HEAD^ (for last commit diff)
  2. git log (to check commits added by users details)

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to Vigges Developer Community for programmer and developer-Open, Learning and Share
...