3️Git command

dotnet new gitignore (create a new .gitignore)

dotnet new gitignore (create a new .gitignore)

In visual studio

Create a new branch: at bottom-right select master, than select new branch a. input new branch name such as: feature\new-branch b. select origin/master c. don't select 揟rack remote branch? (*** very important ***) d. press Create Branch change something, writing command and publish

Resolving the conflict in merge

Entry repository directory

Check out and pull the recent version of the destination (master)branch from the remote. Git checkout master git pull origin master

Check out the source (new-names) branch. git checkout feature/booking-interface git pull origin feature/booking-interface

Merge the master Branch into the new-names branch.

git merge master

see different use merge and push

fix migration, in VS, press merge, see different, select and press Target

At migration folder, select and add some migration have not include in VS.

  1. Update-database -TargetMigration: [second last good migration name]

  2. Exclude new migrations from project

  3. Include one by one migration Add-Migration [full name of migration]

  4. Finally, update-database

-----------------------------------

Last updated