prepending commands with a "!" runs it in the shell, assuming you are using python.
! git commit add ./my_file.ipnb
http://ipython.readthedocs.io/en/stable/interactive/python-i...