I am working on a project in Bootstrap 4. I suspect that core file have been disturbed/changed by other developers and want to prove if i am right or wrong. How can i compare to both, as it is a huge framework.
Asked
Active
Viewed 71 times
3
-
1Redownload the Bootstrap4 source files you are using and make a diff (you can diff whole directories) – andreas Feb 22 '17 at 13:52
3 Answers
1
Yes, you can if you are using version control software (git?). If you don't use it it might be hard to show that change.

fernando
- 814
- 1
- 9
- 24
1
I assume your Bootstrap core files are in dir1/
and you are on linux (or have access to a terminal, i.e. git shell).
- Download the Bootstrap4 core files again into
dir2/
next todir1
- Navigate to the parent directory of
dir1
anddir2
in your terminal - run a diff i.e.:
$ diff -r dir1/ dir2/
- Check the output for differences

andreas
- 16,357
- 12
- 72
- 76
-
-
-
when i do `diff -r dist/dist2/` it get output saying `cmdlet Compare-Object Supply values for the DifferenceObject[0]:` asking me to enter. What to enter? – localhost Feb 22 '17 at 14:51
-
See [this post](http://serverfault.com/questions/5598/how-do-i-diff-two-text-files-in-windows-powershell) or [this post](http://stackoverflow.com/questions/6877238/what-is-the-windows-equivalent-of-the-diff-command). – andreas Feb 22 '17 at 14:57
-
1Alternatively you can install the [git shell](https://git-for-windows.github.io) on windows – andreas Feb 22 '17 at 15:01
-
I installed git for windows and it says this `$ diff -r dist/dist2/ diff: missing operand after 'dist/dist2/' ` – localhost Feb 22 '17 at 15:05
-
-
that is long files of css and scss. How am i able to check what i need to check. Did it output everything? – localhost Feb 22 '17 at 15:13
-
0
To expand on Andreas's answer, you can diff in a number of ways.
$ Diff
Most popular is likely shell/terminal diff as mentioned in Andrea's answer.
GitHub
You could also use version control tools, upload each as a branch, and see the diff in GitHub.
Software
There's also a number of installable software. I often use BeyondCompare to compare directories of photos to see if they've been edited.

Alex Johnson
- 1,504
- 13
- 20